symfony 配置

原创
2019/03/29 14:35
阅读数 25
<VirtualHost *:8100>
    ServerAdmin 1044295598@qq.com
    ServerName local.yayuanzi.net:8100
    DocumentRoot /home/yyz/website/p2a871-beta/web/
    DirectoryIndex app.php
    <Directory /home/yyz/website/p2a871-beta/web/>
        RewriteEngine On
        RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
        RewriteRule ^(.*) - [E=BASE:%1]
        RewriteCond %{HTTP:Authorization} .
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
        RewriteCond %{ENV:REDIRECT_STATUS} ^$
        RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
        RewriteCond %{REQUEST_FILENAME} -f
        RewriteRule .? - [L]
        RewriteRule .? %{ENV:BASE}/app.php [L]
    </Directory>
    ErrorLog /home/yyz/logs/p2a871-beta-error_log
    CustomLog /home/yyz/logs/p2a871-beta-access_log common
</VirtualHost>
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部