您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

nginx配置vhost例子

2025/11/3 20:27:58发布16次查看
nginx下面几个配置vhost的例子
php
server {server_name stage.localhost;listen80 ; root /data; indexindex.html index.htm index.php;location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param script_filename /data$fastcgi_script_name; include fastcgi_params; }}
静态文件
server {server_name sms.fake;listen 80; root /data/fakesms; index mobile1.html mobile1b.html;}
其他语言开发的server服务
server { listen 80; server_name localhost.pythonserver; access_log /var/log/nginx/pythonserver-access.log ; error_log /var/log/nginx/pythonserver-error.log ; charset utf-8; client_max_body_size 100m; client_body_timeout 60; location /exam0/ { proxy_pass http://127.0.0.1:8889; } location /exam1/ { proxy_pass http://127.0.0.1:8880; } location /exam2/ { proxy_pass http://127.0.0.1:8881; }}
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了nginx配置vhost例子,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product