合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
# Nginx配置案例 ```nginx server { #监听端口号 listen 80; #域名 server_name www.php7.tt; #网站目录 root /home/web/php7/; location /{ ssi on; ssi_silent_errors on; index index.php index.html index.htm; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } #nginx开启rewrite if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } #nginx开启二级域名 location /youdomain/ { if (!-e $request_filename){ rewrite ^/youdomain/(.*)$ /youdomain/index.php?s=/$1 last; } } access_log /usr/local/nginx/logs/php7_access.log; error_log /usr/local/nginx/logs/php7_error.log; } ```