php - Setup NGINX server on VPS(ubuntu) behind NAT -


i own small vps (128mb vram) private ip 192.168.0.xxx public ip xxx.xxx.xx.24 , 20 ports assigned private ip. vps configured lnmp server. config file website want run looks this: (it in sites-available , linked sites-enabled)

server {     listen 12304 default_server; //12304 1 of ports of private ip     listen [::]:12304 default_server ipv6only=on;      root home/wordpress_acc/wordpress_website; // contains sample index.html     index index.html index.htm index.php;      # make site accessible http://localhost/     server_name www.xyz.tk;      location / {             # first attempt serve request file,             # directory, fall displaying 404.             try_files $uri $uri/ =404;             # uncomment enable naxsi on location             # include /etc/nginx/naxsi.rules     }     #error_page 404 /404.html; } 

when try acces site via domain www.xyz.tk or public ip , port 12304 (xxx.xxx.xx.24:12304) webbrowser not load sample index.html shows error "could not connect xxx.xxx.xx.24:12304 / www.xyz.tk

is there somthing else need configure in nginx or doing wrong ? thank time , efforts in advance!

ps: running teamspeak3 server on vps have configured self. running on 1 of assigned ports , works fine.

edit: added ftp server (vsftpd) on port 12305 , 12306-12310 , working... still not able configure nginx server :-/


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -