ubuntu - Only one of my ports is working as defined in my Nginx config -
my server working website defined on port 8000 (my.ip.ad.dress:8000) , not site defined on port 8888. nginx config follows:
server { listen 8000 default_server; listen [::]:8000 default_server ipv6only=on; root /var/www/my-follow-up/public; index index.php index.html index.htm; server_name http://64.46.53.164/; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; } } server { listen 8888; listen [::]:8888 default_server ipv6only=on; root /var/www/my-follow-up-external/public; index index.php index.html index.htm; server_name http://64.46.53.164/; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; }
i have given both of root directories correct user permissions. when attempt navigate my.ip.ad.dress:8888 "err_connection_refused" error.
i solved this, wasn't thinking straight.
i cannot use port 8888. switched 8080 , works fine.
Comments
Post a Comment