Apache vhost配置


DocumentRoot "E:\www\codeigniter"
ServerName www.codeigniter.com
DirectoryIndex index.php

Options FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all

 


ServerAdmin dev.xnxw.com
DocumentRoot e:/www/xnxw/webapp/
ServerName dev.xnxw.com
ServerAlias dev.xnxw.cn
ErrorLog logs/dev.xnxw.cn-error_log
CustomLog logs/dev.xnxw.cn-access_log common

Options FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all


RewriteEngine On
RewriteRule ^/cp(/.*)?$ /cp.php/xincp/$1 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ /index.php/$1 [L]

 



ServerAdmin m.xnxw.com
DocumentRoot e:/www/xnxw_m/webapp/
ServerName m.xnxw.com
ServerAlias m.xnxw.cn
ErrorLog logs/m.xnxw.cn-error_log
CustomLog logs/m.xnxw.cn-access_log common

Options FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all


RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ /index.php/$1 [L]





ServerAdmin job.pccncn.dev
DocumentRoot e:/www/cncn_net/webapp/
ServerName job.pccncn.dev
ServerAlias job.pccncn.dev
ErrorLog logs/job.pccncn.dev-error_log
CustomLog logs/job.pccncn.dev-access_log common

Options FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all


RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ /index.php/$1 [L]





站点常用配置,可复用。

你可能感兴趣的:(web开发)