Hello,<div><br></div><div>What are the permissions on <span style="color:rgb(51,51,51);font-family:arial,sans-serif;background-color:rgb(245,245,245);font-size:medium">/etc/nginx/sites-enabled/?</span><br clear="all"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div>
<span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">You might need to give nginx rwx rights.</span></div>
<div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Reg</span>ards,</div><div><br>
</div><a href="http://www.twitter.com/jdorfman" target="_blank">Justin Dorfman</a><br><br><a href="http://www.netdna.com" target="_blank">NetDNA</a>™<br>The Science of Acceleration™<br><br>Email / gtalk: <a href="mailto:jdorfman@netdna.com" target="_blank">jdorfman@netdna.com</a><br>
</span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">P: 1.323.301.1400 x 272<br></span><div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="background-color:rgb(255,255,255)">Skype: netdna-justind<br>
Twitter: </span></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><span style="background-color:rgb(255,255,255)"><a href="http://www.twitter.com/jdorfman" style="color:rgb(0,0,204)" target="_blank">@jdorfman</a></span><br>
<br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.netdna.com/" target="_blank">www.NetDNA.com</a> | </span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.maxcdn.com/" target="_blank">www.MaxCDN.com</a></span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"> </span></div>
<div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://twitter.com/NetDNA" style="color:rgb(42,93,176)" target="_blank">@NetDNA</a> | </span><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://twitter.com/MaxCDN" style="color:rgb(42,93,176)" target="_blank">@MaxCDN</a></span></div>
</div><br>
<br><br><div class="gmail_quote">On Wed, Apr 4, 2012 at 9:18 PM, aris <span dir="ltr"><<a href="mailto:arissirajawali@gmail.com">arissirajawali@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<div><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">how to</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">configure</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">nginx.conf, sites-available and sites-enabled</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">I</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">get</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">403 Forbidden</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">nginx/0.7.67</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">please</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">check out</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">where</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">my</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">configuration</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">errors</span></div>
<div><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"></span><b><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">I</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">nginx.conf</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">following</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">:</span></b></div>
<div><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"><br></span></div><div><span style="background-color:rgb(245,245,245)"><div><font color="#333333" face="arial, sans-serif" size="3">user www-data;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">worker_processes 1;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">error_log /var/log/nginx/error.log;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">pid /var/run/nginx.pid;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">events {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> worker_connections 1024;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # multi_accept on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">}</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">http {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> include /etc/nginx/mime.types;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> access_log /var/log/nginx/access.log;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> sendfile on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #tcp_nopush on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #keepalive_timeout 0;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> keepalive_timeout 65;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> tcp_nodelay on;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> gzip on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> gzip_disable "MSIE [1-6]\.(?!.*SV1)";</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> include /etc/nginx/conf.d/*.conf;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> include /etc/nginx/sites-enabled/*;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"># mail {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># # See sample authentication script at:</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># # <a href="http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript" target="_blank">http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript</a></font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># # auth_http localhost/auth.php;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># # pop3_capabilities "TOP" "USER";</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># # imap_capabilities "IMAP4rev1" "UIDPLUS";</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#</font></div><div>
<font color="#333333" face="arial, sans-serif" size="3"># server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># listen localhost:110;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># protocol pop3;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># proxy on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># }</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># listen localhost:143;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># protocol imap;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># proxy on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># }</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># }</font></div>
<div style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px"><br></div><div style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px"><br></div><div style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px">
<b><span>The following</span> <span>sites</span><span>-available</span> <span>I</span> <span>have :</span></b></div><div><span><div><font color="#333333" face="arial, sans-serif" size="3"># You may add here your</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># ...</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># }</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># statements for each of your virtual hosts</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">server {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> listen 80; ## listen for ipv4</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> server_name localhost;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> access_log /var/log/nginx/localhost.access.log;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> location / {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> root /var/www;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> index index.php;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> }</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> location /doc {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> root /usr/share;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> autoindex on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> allow 127.0.0.1;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> deny all;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> }</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> location /images {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> root /usr/share;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> autoindex on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> }</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #error_page 404 /404.html;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # redirect server error pages to the static page /50x.html</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #error_page 500 502 503 504 /50x.html;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #location = /50x.html {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> # root /var/www/nginx-default;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1:80" target="_blank">127.0.0.1:80</a></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #location ~ \.php$ {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #proxy_pass <a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a></font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #location ~ \.php$ {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_index index.php;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #includefastcgi_params;</font></div><div><div><font color="#333333" face="arial, sans-serif" size="3"> #} </font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # deny access to .htaccess files, if Apache's document root</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # concurs with nginx's one</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #location ~ /\.ht {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #deny all;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #}</font></div><div><font color="#333333" face="arial, sans-serif" size="3">}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"># another virtual host using mix of IP-, name-, and port-based configuration</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#listen 8000;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#listen somename:8080;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#server_name somename alias another.alias;</font></div><div>
<font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">#location / {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#root html;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#index index.html index.htm;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"># HTTPS server</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#</font></div><div><div><font color="#333333" face="arial, sans-serif" size="3">#server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#listen 443;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#server_name localhost;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl on;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#ssl_certificate cert.pem;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_certificate_key cert.key;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_session_timeout 5m;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_protocols SSLv3 TLSv1;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_prefer_server_ciphers on;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">#location / {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#root html;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#index index.html index.htm;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div>
</div></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><b style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px"><span>The following</span> <span>sites</span><span>-enabled</span> <span>I</span> <span>have :</span></b></div>
<div><span><div><font color="#333333" face="arial, sans-serif" size="3"># You may add here your</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># ...</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"># }</font></div><div><font color="#333333" face="arial, sans-serif" size="3"># statements for each of your virtual hosts</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3">server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> listen 80; ## listen for ipv4</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> server_name localhost;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> access_log /var/log/nginx/localhost.access.log;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> location / {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> root /var/www;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> index index.php;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> }</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> location /doc {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> root /usr/share;</font></div><div>
<font color="#333333" face="arial, sans-serif" size="3"> autoindex on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> allow 127.0.0.1;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> deny all;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> }</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> location /images {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> root /usr/share;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> autoindex on;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> }</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #error_page 404 /404.html;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # redirect server error pages to the static page /50x.html</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #error_page 500 502 503 504 /50x.html;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #location = /50x.html {</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> # root /var/www/nginx-default;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1:80" target="_blank">127.0.0.1:80</a></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #location ~ \.php$ {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #proxy_pass <a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a></font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #location ~ \.php$ {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_index index.php;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #includefastcgi_params;</font></div><div><div><font color="#333333" face="arial, sans-serif" size="3"> #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #includefastcgi_params;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #} </font></div><div><font color="#333333" face="arial, sans-serif" size="3"> </font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> # deny access to .htaccess files, if Apache's document root</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> # concurs with nginx's one</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #location ~ /\.ht {</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> #deny all;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> #}</font></div><div><font color="#333333" face="arial, sans-serif" size="3">}</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br>
</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> </font></div><div><font color="#333333" face="arial, sans-serif" size="3"># another virtual host using mix of IP-, name-, and port-based configuration</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#listen 8000;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#listen somename:8080;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#server_name somename alias another.alias;</font></div><div>
<font color="#333333" face="arial, sans-serif" size="3"> </font></div><div><font color="#333333" face="arial, sans-serif" size="3">#location / {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#root html;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#index index.html index.htm;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> </font></div><div><font color="#333333" face="arial, sans-serif" size="3"> </font></div><div><font color="#333333" face="arial, sans-serif" size="3"># HTTPS server</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#server {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#listen 443;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#server_name localhost;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"><br></font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl on;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#ssl_certificate cert.pem;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_certificate_key cert.key;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> </font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#ssl_session_timeout 5m;</font></div><div><font color="#333333" face="arial, sans-serif" size="3"> </font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_protocols SSLv3 TLSv1;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#ssl_prefer_server_ciphers on;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3"> </font></div><div><font color="#333333" face="arial, sans-serif" size="3">#location / {</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#root html;</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">#index index.html index.htm;</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div><div><font color="#333333" face="arial, sans-serif" size="3">#}</font></div>
<div style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px"><br></div></div></span></div></span></div></span></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>