Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: simple Nginx config not working

$
0
0
sure

http://i.imgur.com/BORWW0F.jpg


it seems like a strange error, saying address is already in use. The server block tells nginx to listen to that port,
sudo netstat -tapen | grep ":8005/6/7 " tells me that nginx is listening on that port. I've opened the port to the internet with the firewall.

'Address already in use', its hardly something to do with some sort of setting somewhere thats telling nginx to only allow traffic coming into this IP to go to one port and one domain?

here is the config for the application already running:

server {

listen 8001;
server_name www.runningapp.com runningapp.com;

index index.php index.html index.htm;
root /usr/share/nginx/www/app/webapp;
access_log /usr/share/nginx/www/app/logs/access.log;
error_log /usr/share/nginx/www/app/logs/error.log;
port_in_redirect off;

gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_buffers 16 8k;
gzip_http_version 1.0;

gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript image/png image/gif image/jpeg;

location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}

location ~* /\.ht {
deny all;
access_log off;
log_not_found off;
}

location ~* \.php$ {
try_files $uri /index.php;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;

}

}


doesnt look like there is anything there about restricting the IP, although it probably wouldn't exist here. Is this even possible to do!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>