ini * .dev vhosts
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini * .dev vhosts相关的知识,希望对你有一定的参考价值。
# /etc/apache2/extra/httpd-vhosts.conf
<Directory /Volumes/Dev>
Require all granted
AllowOverride All
</Directory>
<VirtualHost *:80>
ServerName dev
ServerAlias *.dev
CustomLog /var/log/apache2/dev.access_log vcommon
ErrorLog /var/log/apache2/dev.error_log
VirtualDocumentRoot /Volumes/Dev/%-2.0.%-1.0/web/
Options +FollowSymLinks
DirectoryIndex index.php
FallbackResource /index.php
PHP_value auto_prepend_file /Volumes/Dev/xhprof.dev/inc/prepend.php
PHP_value auto_append_file /Volumes/Dev/xhprof.dev/inc/append.php
SetEnv Debug 1
</VirtualHost>
<VirtualHost *:80>
ServerName vcap.me
ServerAlias *.vcap.me *.localtest.me *.lvh.me *.fuf.me
CustomLog /var/log/apache2/dev.access_log vcommon
ErrorLog /var/log/apache2/dev.error_log
VirtualDocumentRoot /Volumes/Dev/%-3.0.dev/web/
Options +FollowSymLinks
DirectoryIndex index.php
FallbackResource /index.php
PHP_value auto_prepend_file /Volumes/Dev/xhprof.dev/inc/prepend.php
PHP_value auto_append_file /Volumes/Dev/xhprof.dev/inc/append.php
SetEnv Debug 1
</VirtualHost>
ini Ngnix vhost模板
server {
listen 80;
server_name CHANGEME.app;
root /var/www/vhosts/CHANGEME.app/public;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/CHANGEME.app-error.log error;
error_page 404 /index.php;
sendfile off;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
}
location ~ /\.ht {
deny all;
}
}
以上是关于ini * .dev vhosts的主要内容,如果未能解决你的问题,请参考以下文章
ini vhost.conf
ini Ngnix vhost模板
ini apache vhosts
ini 的httpd-vhosts.conf
ini 的httpd-vhosts.conf
ini 的httpd-vhosts.conf