Results 1 to 5 of 5

Thread: NGinX mix-up

  1. #1
    Join Date
    Oct 2013
    Beans
    4

    NGinX mix-up

    hi All,

    Here is what I have:

    A system was currently handed over to me with a huge potential to explore on my own.

    We have several active websites in one server (192.168.1.5) which is pointing to another server that manages the http traffic (192.168.1.10)

    Per say, websites are as follows:

    webone.com listens to port 80
    webtwo.com listens to port 80 and proxy is pointed to webone.com:8082
    webthree.com listens to port 80 and proxy is pointed to webone.com:8083
    webfour.com listens to port 80 and proxy is pointed to webone.com:8084

    when i access the webone.com site, it opens the webfour.com page.

    I have checked the config files and even recreated a webone.com file from one that works.

    Where should i check now, im passed 5 hours trying to look for a reason why it is not working when it was working few days ago without any prior change. well that is since I got in.

    Thanks in advanced.

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: NGinX mix-up

    How are you doing the redirects?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Oct 2013
    Beans
    4

    Re: NGinX mix-up

    Quote Originally Posted by CharlesA View Post
    How are you doing the redirects?
    thanks charles, you mean how the commands where written?

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: NGinX mix-up

    Quote Originally Posted by John_Madrid View Post
    thanks charles, you mean how the commands where written?
    Sorta. I have a block in my configuration file that is written like this:

    Code:
    server {
            listen 127.0.0.1:8080;
            server_name www.charlesa.net;
            return 301 http://charlesa.net$request_uri;
    }
    Don't mind the listening on 127.0.0.1:8080 bit, that's because I'm running Varnish on my web server.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  5. #5
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: NGinX mix-up

    Quote Originally Posted by John_Madrid View Post
    hi All,

    Here is what I have:

    A system was currently handed over to me with a huge potential to explore on my own.

    We have several active websites in one server (192.168.1.5) which is pointing to another server that manages the http traffic (192.168.1.10)

    Per say, websites are as follows:

    webone.com listens to port 80
    webtwo.com listens to port 80 and proxy is pointed to webone.com:8082
    webthree.com listens to port 80 and proxy is pointed to webone.com:8083
    webfour.com listens to port 80 and proxy is pointed to webone.com:8084

    when i access the webone.com site, it opens the webfour.com page.

    I have checked the config files and even recreated a webone.com file from one that works.

    Where should i check now, im passed 5 hours trying to look for a reason why it is not working when it was working few days ago without any prior change. well that is since I got in.

    Thanks in advanced.
    Can you post the config files in /etc/nginx/sites-enabled/*

    Thanks
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •