Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Nginx Linux error
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="GetRekt" data-source="post: 302643" data-attributes="member: 50848"><p>Here is my Nginx.conf located in /etc/nginx/nginx.conf</p><p></p><p>[code]</p><p>#user nobody;</p><p>worker_processes 1;</p><p></p><p>#error_log logs/error.log;</p><p>#error_log logs/error.log notice;</p><p>#error_log logs/error.log info;</p><p></p><p>#pid logs/nginx.pid;</p><p></p><p></p><p>events {</p><p> worker_connections 1024;</p><p>}</p><p></p><p></p><p>http {</p><p> include mime.types;</p><p> default_type application/octet-stream;</p><p></p><p> #log_format main '$remote_addr - $remote_user [$time_local] "$request" '</p><p> # '$status $body_bytes_sent "$http_referer" '</p><p> # '"$http_user_agent" "$http_x_forwarded_for"';</p><p></p><p> #access_log logs/access.log main;</p><p></p><p> sendfile on;</p><p> #tcp_nopush on;</p><p></p><p> #keepalive_timeout 0;</p><p> keepalive_timeout 65;</p><p></p><p> #gzip on;</p><p></p><p> server {</p><p> listen 80;</p><p> server_name localhost;</p><p></p><p> #charset koi8-r;</p><p></p><p> #access_log logs/host.access.log main;</p><p></p><p> location / {</p><p> root /var/www/virtual/habvine/root;</p><p> index index.php index.html index.htm;</p><p> rewrite ^/(.*)\.html /$1\.php;</p><p> if (!-e $request_filename){</p><p> rewrite ^/out/([^/]+)(|/)$ /out.php?out=$1;</p><p> }</p><p> }</p><p> </p><p> error_page 500 /error.php?e=500;</p><p></p><p> error_page 404 /error.php?e=404;</p><p></p><p> error_page 403 /error.php?e=403;</p><p></p><p> location = /crossdomain.xml {</p><p> rewrite ^(.*)$ /crossdomain.php;</p><p> }</p><p></p><p> location /gamedata {</p><p> rewrite ^/gamedata/external(|/)$ /externals.php;</p><p> }</p><p></p><p> location /vip {</p><p> rewrite ^/vip/vouchers(|/)$ /redeem.php;</p><p> rewrite ^/vip/shop(|/)$ /vipshop.php;</p><p> rewrite ^/vip/getpoints(|/)$ /vippoints.php;</p><p> }</p><p></p><p> location /vote {</p><p> rewrite ^/vote(|/)$ /api.php;</p><p> }</p><p></p><p> location /texts {</p><p> rewrite ^/texts(|/)$ /externals.php?id=external_flash_texts;</p><p> }</p><p></p><p> location /vars {</p><p> rewrite ^/vars(|/)$ /externals.php?id=external_variables;</p><p> }</p><p></p><p> location /productdata {</p><p> rewrite ^/productdata(|/)$ /gamedata/ACTIVE/productdata.txt;</p><p> }</p><p></p><p> location /furnidata {</p><p> rewrite ^/furnidata(|/)$ /gamedata/ACTIVE/furnidata.txt;</p><p> }</p><p></p><p> location /access_denied {</p><p> rewrite ^/access_denied(|/)$ /access_denied.php;</p><p> }</p><p></p><p> location /client_denied {</p><p> rewrite ^/client_denied(|/)$ /access_denied.php?gateway=client?novote;</p><p> }</p><p></p><p> location /order {</p><p> rewrite ^/order/vip(|/)$ /ordervip.php?pass=true;</p><p> }</p><p></p><p> location /home {</p><p> rewrite ^/home/([^/]+)/id(|/)$ /home.php?qryId=$1;</p><p> rewrite ^/home/([^/]+)(|/)$ /home.php?qryName=$1;</p><p> rewrite ^/home/(.*)/startSession/(.*)$ /startSession.php?id=$2;</p><p> rewrite ^/home/([^/]+)/id(|/)$ /home.php?qryId=$1;</p><p> rewrite ^/home/([^/]+)(|/)$ /home.php?qryName=$1;</p><p> }</p><p></p><p> location /avatarimage {</p><p> rewrite ^/avatarimage(|/)$ /inc/imager.php?figure=$1;</p><p> }</p><p></p><p> location /quickmenu {</p><p> rewrite ^/quickmenu/friends_all(|/)$ /quick-friends.php;</p><p> rewrite ^/quickmenu/groups(|/)$ /quick-groups.php;</p><p> rewrite ^/quickmenu/rooms(|/)$ /quick-rooms.php;</p><p> }</p><p></p><p> location /security_check {</p><p> rewrite ^/security_check(|/)$ /security_check.php;</p><p> }</p><p></p><p> location /profile {</p><p> rewrite ^/profile(|/)$ /profile.php;</p><p> }</p><p></p><p> location /values {</p><p> rewrite ^/values(|/)$ /values.php;</p><p> }</p><p></p><p> location /client {</p><p> rewrite ^/client(|/)$ /newclient.php;</p><p> }</p><p></p><p> location /flash_client_error {</p><p> rewrite ^/flash_client_error(|/)$ /client_error.php;</p><p> }</p><p></p><p> location /client_error {</p><p> rewrite ^/client_error(|/)$ /client_error.php;</p><p> }</p><p></p><p> location /me {</p><p> rewrite ^/me(|/)$ /me.php;</p><p> }</p><p></p><p> location /login_popup {</p><p> rewrite ^/login_popup(|/)$ /login-popup.php;</p><p> }</p><p></p><p> location /buyvip {</p><p> rewrite ^/buyvip(|/)$ /vippage.php;</p><p> }</p><p></p><p> location /community {</p><p> rewrite ^/community(|/)$ /community.php;</p><p> rewrite ^/community/staff(|/)$ /staff.php;</p><p> }</p><p></p><p> location /credits {</p><p> rewrite ^/credits(|/)$ /credits.php;</p><p> rewrite ^/credits/pixels(|/)$ /pixels.php;</p><p> rewrite ^/credits/club(|/)$ /habboclub.php;</p><p> rewrite ^/credits/habboclub(|/)$ /habboclub.php;</p><p> rewrite ^/credits/uberclub(|/)$ /habboclub.php;</p><p> rewrite ^/credits/uberclub/tryout(|/)$ /clubtryout.php;</p><p> rewrite ^/credits/habboclub/tryout(|/)$ /clubtryout.php;</p><p> }</p><p></p><p> location /register {</p><p> rewrite ^/register(|/)$ /register.php;</p><p> rewrite ^/register/cancel(|/)$ /register-cancel.php;</p><p> rewrite ^/register/welcome(|/)$ /welcome.php;</p><p> rewrite ^/register/undefined(|/)$ /index.php;</p><p> rewrite ^/register/undefined/([^/]+)$ /me.php;</p><p> }</p><p></p><p> location /register_submit {</p><p> rewrite ^/register_submit(|/)$ /register.php?doSubmit;</p><p> }</p><p></p><p> location /register_messages {</p><p> rewrite ^/register_messages(|/)$ /register-messages.php;</p><p> }</p><p></p><p> location /account {</p><p> rewrite ^/account/policy-verify(|/)$ /policyver.php;</p><p> rewrite ^/account/password/forgot(|/)$ /forgot.php;</p><p> rewrite ^/account/submit(|/)$ /index.php;</p><p> rewrite ^/account/logout(|/)$ /logout.php;</p><p> rewrite ^/account/logout_ok(|/)$ /logout-ok.php;</p><p> rewrite ^/account/disconnected(|/)$ /disconnected.php;</p><p> }</p><p></p><p> location /articles {</p><p> rewrite ^/articles(|/)$ /article.php?mostRecent;</p><p> rewrite ^/articles/archive(|/)$ /article.php?mostRecent&archiveMode;</p><p> rewrite ^/articles/([^/]+)/in/archive(|/)$ /article.php?rel=$1&archiveMode;</p><p> rewrite ^/articles/([^/]+)(|/)$ /article.php?rel=$1;</p><p> rewrite ^/articles/category/([^/]+)(|/)$ /article.php?category=$1;</p><p> }</p><p></p><p> location /myhabbo {</p><p> rewrite ^/myhabbo/save(|/)$ /myhabbo/save.php;</p><p> rewrite ^/myhabbo/cancel/(.*)(|/)$ /myhabbo/cancel.php?id=$1;</p><p> rewrite ^/myhabbo/(.*)/(.*)(|/)$ /myhabbo/$1_$2.php;</p><p> rewrite ^/myhabbo/([^.]+)(|/)$ /myhabbo.php?cmd=$1;</p><p> }</p><p></p><p> location /habblet {</p><p> rewrite ^/habblet/cproxy(|/)$ /habbletProxy.php;</p><p> rewrite ^/habblet/ajax/([^/]+)(|/)$ /habbletAjax.php?cmd=$1;</p><p> rewrite ^/habblet/([^/]+)(|/)$ /habblet.php?cmd=$1;</p><p> }</p><p></p><p> location /minimail {</p><p> rewrite ^/minimail/loadMessage(|/)$ /minimail-view.php;</p><p> rewrite ^/minimail/([^/]+)(|/)$ /minimail.php?cmd=$1;</p><p> }</p><p></p><p> location /.htaccess {</p><p> deny all;</p><p> }</p><p></p><p> location ~ “\.(tpl,sql)$” {</p><p> deny all;</p><p> }</p><p></p><p> location /403.shtml {</p><p> allow all;</p><p> }</p><p></p><p> #error_page 404 /404.html;</p><p></p><p> # redirect server error pages to the static page /50x.html</p><p> #</p><p> error_page 500 502 503 504 /50x.html;</p><p> location = /error.php {</p><p> root /var/www/virtual/habvine/root;</p><p> }</p><p></p><p> # proxy the PHP scripts to Apache listening on 127.0.0.1:80</p><p> #</p><p> #location ~ \.php$ {</p><p> # proxy_pass http://127.0.0.1;</p><p> #}</p><p></p><p> # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000</p><p> #</p><p> location ~ \.php$ {</p><p> root /var/www/virtual/habvine/root;</p><p> fastcgi_pass 127.0.0.1:9000;</p><p> fastcgi_index index.php;</p><p> fastcgi_param SCRIPT_FILENAME C:/nginx/html/$fastcgi_script_name;</p><p> include fastcgi_params;</p><p> }</p><p></p><p> # deny access to .htaccess files, if Apache's document root</p><p> # concurs with nginx's one</p><p> #</p><p> #location ~ /\.ht {</p><p> # deny all;</p><p> #}</p><p> }</p><p></p><p></p><p> # another virtual host using mix of IP-, name-, and port-based configuration</p><p> #</p><p> #server {</p><p> # listen 8000;</p><p> # listen somename:8080;</p><p> # server_name somename alias another.alias;</p><p></p><p> # location / {</p><p> # root html;</p><p> # index index.html index.htm;</p><p> # }</p><p> #}</p><p></p><p></p><p> # HTTPS server</p><p> #</p><p> #server {</p><p> # listen 443;</p><p> # server_name localhost;</p><p></p><p> # ssl on;</p><p> # ssl_certificate cert.pem;</p><p> # ssl_certificate_key cert.key;</p><p></p><p> # ssl_session_timeout 5m;</p><p></p><p> # ssl_protocols SSLv2 SSLv3 TLSv1;</p><p> # ssl_ciphers HIGH:!aNULL:!MD5;</p><p> # ssl_prefer_server_ciphers on;</p><p></p><p> # location / {</p><p> # root html;</p><p> # index index.html index.htm;</p><p> # }</p><p> #}</p><p></p><p>}</p><p>[/code]</p></blockquote><p></p>
[QUOTE="GetRekt, post: 302643, member: 50848"] Here is my Nginx.conf located in /etc/nginx/nginx.conf [code] #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root /var/www/virtual/habvine/root; index index.php index.html index.htm; rewrite ^/(.*)\.html /$1\.php; if (!-e $request_filename){ rewrite ^/out/([^/]+)(|/)$ /out.php?out=$1; } } error_page 500 /error.php?e=500; error_page 404 /error.php?e=404; error_page 403 /error.php?e=403; location = /crossdomain.xml { rewrite ^(.*)$ /crossdomain.php; } location /gamedata { rewrite ^/gamedata/external(|/)$ /externals.php; } location /vip { rewrite ^/vip/vouchers(|/)$ /redeem.php; rewrite ^/vip/shop(|/)$ /vipshop.php; rewrite ^/vip/getpoints(|/)$ /vippoints.php; } location /vote { rewrite ^/vote(|/)$ /api.php; } location /texts { rewrite ^/texts(|/)$ /externals.php?id=external_flash_texts; } location /vars { rewrite ^/vars(|/)$ /externals.php?id=external_variables; } location /productdata { rewrite ^/productdata(|/)$ /gamedata/ACTIVE/productdata.txt; } location /furnidata { rewrite ^/furnidata(|/)$ /gamedata/ACTIVE/furnidata.txt; } location /access_denied { rewrite ^/access_denied(|/)$ /access_denied.php; } location /client_denied { rewrite ^/client_denied(|/)$ /access_denied.php?gateway=client?novote; } location /order { rewrite ^/order/vip(|/)$ /ordervip.php?pass=true; } location /home { rewrite ^/home/([^/]+)/id(|/)$ /home.php?qryId=$1; rewrite ^/home/([^/]+)(|/)$ /home.php?qryName=$1; rewrite ^/home/(.*)/startSession/(.*)$ /startSession.php?id=$2; rewrite ^/home/([^/]+)/id(|/)$ /home.php?qryId=$1; rewrite ^/home/([^/]+)(|/)$ /home.php?qryName=$1; } location /avatarimage { rewrite ^/avatarimage(|/)$ /inc/imager.php?figure=$1; } location /quickmenu { rewrite ^/quickmenu/friends_all(|/)$ /quick-friends.php; rewrite ^/quickmenu/groups(|/)$ /quick-groups.php; rewrite ^/quickmenu/rooms(|/)$ /quick-rooms.php; } location /security_check { rewrite ^/security_check(|/)$ /security_check.php; } location /profile { rewrite ^/profile(|/)$ /profile.php; } location /values { rewrite ^/values(|/)$ /values.php; } location /client { rewrite ^/client(|/)$ /newclient.php; } location /flash_client_error { rewrite ^/flash_client_error(|/)$ /client_error.php; } location /client_error { rewrite ^/client_error(|/)$ /client_error.php; } location /me { rewrite ^/me(|/)$ /me.php; } location /login_popup { rewrite ^/login_popup(|/)$ /login-popup.php; } location /buyvip { rewrite ^/buyvip(|/)$ /vippage.php; } location /community { rewrite ^/community(|/)$ /community.php; rewrite ^/community/staff(|/)$ /staff.php; } location /credits { rewrite ^/credits(|/)$ /credits.php; rewrite ^/credits/pixels(|/)$ /pixels.php; rewrite ^/credits/club(|/)$ /habboclub.php; rewrite ^/credits/habboclub(|/)$ /habboclub.php; rewrite ^/credits/uberclub(|/)$ /habboclub.php; rewrite ^/credits/uberclub/tryout(|/)$ /clubtryout.php; rewrite ^/credits/habboclub/tryout(|/)$ /clubtryout.php; } location /register { rewrite ^/register(|/)$ /register.php; rewrite ^/register/cancel(|/)$ /register-cancel.php; rewrite ^/register/welcome(|/)$ /welcome.php; rewrite ^/register/undefined(|/)$ /index.php; rewrite ^/register/undefined/([^/]+)$ /me.php; } location /register_submit { rewrite ^/register_submit(|/)$ /register.php?doSubmit; } location /register_messages { rewrite ^/register_messages(|/)$ /register-messages.php; } location /account { rewrite ^/account/policy-verify(|/)$ /policyver.php; rewrite ^/account/password/forgot(|/)$ /forgot.php; rewrite ^/account/submit(|/)$ /index.php; rewrite ^/account/logout(|/)$ /logout.php; rewrite ^/account/logout_ok(|/)$ /logout-ok.php; rewrite ^/account/disconnected(|/)$ /disconnected.php; } location /articles { rewrite ^/articles(|/)$ /article.php?mostRecent; rewrite ^/articles/archive(|/)$ /article.php?mostRecent&archiveMode; rewrite ^/articles/([^/]+)/in/archive(|/)$ /article.php?rel=$1&archiveMode; rewrite ^/articles/([^/]+)(|/)$ /article.php?rel=$1; rewrite ^/articles/category/([^/]+)(|/)$ /article.php?category=$1; } location /myhabbo { rewrite ^/myhabbo/save(|/)$ /myhabbo/save.php; rewrite ^/myhabbo/cancel/(.*)(|/)$ /myhabbo/cancel.php?id=$1; rewrite ^/myhabbo/(.*)/(.*)(|/)$ /myhabbo/$1_$2.php; rewrite ^/myhabbo/([^.]+)(|/)$ /myhabbo.php?cmd=$1; } location /habblet { rewrite ^/habblet/cproxy(|/)$ /habbletProxy.php; rewrite ^/habblet/ajax/([^/]+)(|/)$ /habbletAjax.php?cmd=$1; rewrite ^/habblet/([^/]+)(|/)$ /habblet.php?cmd=$1; } location /minimail { rewrite ^/minimail/loadMessage(|/)$ /minimail-view.php; rewrite ^/minimail/([^/]+)(|/)$ /minimail.php?cmd=$1; } location /.htaccess { deny all; } location ~ “\.(tpl,sql)$” { deny all; } location /403.shtml { allow all; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /error.php { root /var/www/virtual/habvine/root; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root /var/www/virtual/habvine/root; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME C:/nginx/html/$fastcgi_script_name; include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443; # server_name localhost; # ssl on; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_timeout 5m; # ssl_protocols SSLv2 SSLv3 TLSv1; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Nginx Linux error
Top