zoukankan      html  css  js  c++  java
  • 宝塔apache配置

    apache配置

    <VirtualHost *:80>
        ServerAdmin webmaster@example.com
        DocumentRoot "/www/wwwroot/mayibang.co/public"
        ServerName 180e6dfd.mayibang.co
        ServerAlias mayibang.co www.mayibang.co admin.mayibang.co
        errorDocument 404 /404.html
        ErrorLog "/www/wwwlogs/mayibang.co-error_log"
        CustomLog "/www/wwwlogs/mayibang.co-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-72.sock|fcgi://localhost"
        </FilesMatch>
        
        #PATH
        <Directory "/www/wwwroot/mayibang.co/public">
            SetOutputFilter DEFLATE
            Options FollowSymLinks
            AllowOverride All
            Require all granted
            DirectoryIndex index.php index.html index.htm default.php default.html default.htm
        </Directory>
    </VirtualHost>
    

    .haccess配置

    <IfModule mod_rewrite.c>
      Options +FollowSymlinks -Multiviews
      RewriteEngine On
    
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
    </IfModule>
    
  • 相关阅读:
    收藏的日历js算法 很实用
    autofac system.core 的版本问题
    and 组件ui等
    vc相关
    live传264流
    录转rtsphan
    ndk errno
    cpp all记录
    and 录音等+live等
    cmake
  • 原文地址:https://www.cnblogs.com/xielisen/p/8556213.html
Copyright © 2011-2022 走看看