Nginx Below a few examples of configuration vhost
Php
server {server_name stage.localhost;listen80 ; root /data; indexindexindexindex.php;location ~ .php$ { 127.0.0.1:9000; index.php; fastcgi_param SCRIPT_FILENAME /data$fastcgi_script_name; include fastcgi_params; }}
static files
server {server_name sms.fake;80; root /data/fakesms; index mobile1.html mobile1b.html;}
Server services developed in other languages
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 <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Nginx configuration Vhost examples, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.