post item
2018年09月04日 17:33:40

Apache

ACG_News


http://www.ttlsa.com/apache/linux-apache-safe-configure/


http://www.ttlsa.com/apache/apache-2-https/



<VirtualHost *:801>
    # ServerName 47.104.101.211
    # ProxyRequests Off
    ProxyPass / http://127.0.0.1:8001/
    ProxyPassReverse / http://127.0.0.1:8001/

</VirtualHost>


pddagora.pinduo.ren
<VirtualHost *:80>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/tencent_video"
    ServerName 98362056.pdd.pinduo.ren
    ServerAlias pdd.pinduo.ren
    errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/pdd.pinduo.ren-error_log"
    CustomLog "/www/wwwlogs/pdd.pinduo.ren-access_log" combined
    
    #DENY FILES
     <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
       Order allow,deny
       Deny from all
    </Files>
    
    #PHP
    <FilesMatch \.php$>
            SetHandler "proxy:unix:/tmp/php-cgi-55.sock|fcgi://localhost"
    </FilesMatch>
    
    #PATH
    <Directory "/www/wwwroot/tencent_video">
        SetOutputFilter DEFLATE
        Options FollowSymLinks
        AllowOverride All
        Require all granted
        DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
</VirtualHost>








 发布者!!

Comments

Leave a comment

Loading