Question

502 Bad Gateway nginx/1.4.6 (Ubuntu)

  • Posted October 29, 2014

Hi, I am using LEMP server with ubontu. I am new on nginx. I had folled all advice and tutorial and able to run info.php file in my server. check here http://104.131.73.38:8080/info.php But when I had uploaded Joomla 3.2.x on my server its saying 502 Bad Gateway nginx/1.4.6 (Ubuntu) . I am really very confused. I had tried all solution I found by google but did not got success. Here is the error log

upstream sent invalid status "0 Folder does not exist and cannot be created: /home/codemela/www/demo/joomla/zollyness/cache/mod_news_show_sp2/nssp2_thumbs/282" while reading response header from upstream, client: 190.235.316.254, server: , request: "GET /demo/joomla/zollyness/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "104.131.73.38:8080"

Another issue. I had connected my domain and there its running on examplesite.com:8080 but when browsing www.examplesite.com or examplesite.com its comming with a port. Why?

Really I need solution. Any one can help me ? Thanks

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

**

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell

**

Not really, but post your Nginx configuration as well. Hard to see what you’re trying to achieve without it.

Zawgyi

Are you sure that the user (probably www-data, given that you’re using the default php5-fpm-socket) has write access to those folders?

I’m not sure what you’re asking about in the last question, maybe port_in_redirect is what you’re looking for?