`
FZtree
  • 浏览: 105267 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

apache 配置

 
阅读更多
<VirtualHost *:80>
        ServerAdmin webmaster@pc
        ServerName shop.nipponpaint.com.cn
        DocumentRoot /var/www
        <Directory /var/www>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/pc-error.log
        CustomLog ${APACHE_LOG_DIR}/pc-access.log combined
</VirtualHost>

<VirtualHost *:80>
        ServerAdmin webmaster@mobile
        ServerName mshop.nipponpaint.com.cn
        DocumentRoot /var/mobile
        <Directory /var/mobile>
                RedirectMatch 301 ^/(.*) http://shop.nipponpaint.com.cn/mobile/index.html#!/home
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/mobile-error.log
        CustomLog ${APACHE_LOG_DIR}/mobile-access.log combined
</VirtualHost>

 

<VirtualHost *:80>
 ServerName tshop.nipponpaint.com.cn
 #DocumentRoot /whatever
  ProxyRequests Off
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>
    ProxyPass / http://134.119.18.39/
    ProxyPassReverse / http://134.119.18.39/
</VirtualHost>

 

分享到:
评论
1 楼 FZtree 2015-04-23  
grep APACHE_LOG_DIR /etc/apache2/*

相关推荐

Global site tag (gtag.js) - Google Analytics