Report this

What is the reason for this report?

nginx and apache dont work together

Posted on January 27, 2015

I set up Apache on my VPS after I choosed to use Nginx. I changed the port for Nginx to 8000 but when I go to Nginx page http://95.85.39.84:8000/ I get just Apache welcome page. I shut down Apache so dont understand how can be there. when i go to http://95.85.39.84/ i got :

403 Forbidden nginx/1.6.2

thanks. mike



This textbox defaults to using Markdown to format your 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.

I changed nginx default to: but still the same. at IP and qbfweb.com is the same index.html. really dont understand. when go to http://95.85.39.84:8000/ i get normal apache welcome site.

we have a lot of website on shared hosting and would like to move one by one all to digitalocean. Also I would like to have some localhost on my VPN. And also pushing from my localhost to VPN through capistrano and github. I bit confused if I am right.

server { listen 80;

    root /var/www/qbfweb.com;
    index index.php index.html index.htm;

    server_name .qbfweb.com;

    location / {
            try_files $uri $uri/ /index.html;
    }

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
          root /usr/share/nginx/www;
    }

I have no idea how to make this work, but it’s my understanding that if you create a droplet with a WordPress on 14.04 Application, it installs Nginx as a front end to Apache, and it seems to run really, really fast. You might fire up an instance in a temporary droplet and check the config files to see if those don’t shed some light on the subject.

can you help somebody ?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.