1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

domain/site does not start on shared IP

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by littlesister, Jun 2, 2011.

  1. littlesister

    littlesister Guest

    0
     
    I am moving from a DirectAdmin environment to a Plesk enviroment and have the problem that my site is not starting up.

    When I setup 'dedicated IP' and select the URL, it works fine. When I select 'shared IP', my site is not started (the default Plesk template page shows).

    Under DirectAdmin, the request that was arriving at the IP address was automatically forwarded to the right site/folder. Now, with Plesk it doesn't seem to work that way.

    What do I need to change or setup to get multiple domains working on 1 IP?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    Make sure that needed site is default for this IP address in IP address settings.
     
  3. littlesister

    littlesister Guest

    0
     
    Yes, that words, but I have multiple domains for the same IP. I cannot all make them default, but want them to work all.
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    It is impossible to use one shared IP for access to several domains. How you imagine it? How your browser will understand which site should be shown when you address by IP?
     
  5. littlesister

    littlesister Guest

    0
     
    Maybe I didn't make myself clear. Many sites can be hosted on one IP. I just want that based on the URL, the right site is started. Now, I just get the default Plesk homepage. If I make the site dedicated to the IP, it will start up. If I share it, it doesn't.

    URL1 - Site 1 - IPaddress1
    URL2 - Site 2 - IPaddress1
    URL3 - Site 3 - IPaddress1

    etc. DirectAdmin does this automatically. Based on the URL coming in, it redirects to the right site/folder.
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    There is only one simple rule:

    If you have exclusive IP - site will work on this IP;
    If you have shared IP - you can use many sites on this IP but only default site will be shown when you go to this IP.
     
  7. littlesister

    littlesister Guest

    0
     
    Yes, I understand :) But I'm not typing the IP address in my browser, but the URL. The URL is not redirected to the right site/folder.
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    Try to rebuild website settings with
     
  9. littlesister

    littlesister Guest

    0
     
    you want me to type this in in SSH?

    It gives me ssl_module is already loaded, skipping step.
     
  10. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    Whether this command has helped you?
     
  11. littlesister

    littlesister Guest

    0
     
    Hi Igor, thanks for all the help. No, it didn't help me.

    I got the following message:

    ssl_module is already loaded, skipping step.
     
  12. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    What about something like:
     
  13. MikkoN

    MikkoN Guest

    0
     
    I have the very same problem

    I got shared IP set up, but if I try to reach domain2.com domain1.com or domain3.com it all goes to default site that is set for the ip. Any help out there? I have absolutely no idea how to solve this. I have tried to run websrvmng and httpdmng, restart apache ..everything ..But NOTHING helps. I'm completely puzzled by this. I did fresh installation of plesk (I have dedicated server and installation is automatic through the service provider's control panel). And this problem started afterwards.
     
  14. helloworld

    helloworld Guest

    0
     
    I am having the same problem. thanks for the post
     
  15. inoes

    inoes New Pleskian

    12
    55%
    Joined:
    Sep 24, 2011
    Messages:
    1
    Likes Received:
    0
    Same problem

    I'm also having difficulty accessing multiple domains hosted on a shared IP setup
     
  16. ssddww

    ssddww New Pleskian

    10
     
    Joined:
    Oct 18, 2012
    Messages:
    1
    Likes Received:
    0
    For all of those who are having this trouble and are beating your head against your computer screen because it isn't making any sense, let me share a solution I found to my issue on a Windows 2003 / Plesk 9.5.1 machine.

    Plesk doesn't seem to always do all the things it should when creating the DNS records. I had a domain that could be accessed without the 'www' (example.com) but could not be access when using the 'www' (www.example.com). I finally found out that I had to add an item directly into IIS:
    Pull up IIS
    Find the site in the "Web Sites" section and right-click on it and choose "properties"
    On the "Web Site" tab, in the "Web site identification" section, click the "Advanced" button
    There is supposed to be a record here with the IP # (i.e., 123.123.123.123), TCP port (80) and the Host header value (www.example.com). If there is not, add it. (If you want your site accessible without using the 'www', add a record with all the same values except without the 'www.'.
    I really hope this helps someone else because I have just spent a couple of extremely frustrating, curse-filled days chasing my tail down wrong paths of DNS entries.
     
  17. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    One thing to do:

    - make sure all of the domains you want are setup to use the shared IP. GO to each domain and go to "Web Hosting Settings" and make sure each site is set to use the shared IP there.
    - make sure that each domain resolves to the public IP of the shared IP in DNS

    You can do this from the command line as well if you would prefer

    Then when you do that go run the web server manager command again
    Getting output warning about modules alreayd being loaded is fine, thats not really an error or anything. What that does is it rebuilds the plesk config files for the domains (among a few other items) and then restarts apache. What ever message you get from restarting apache normally would show here.

    For example on one of my servers I get
    And thats the only output of the command, but that also means that it worked (or at least didn't error)
     
  18. danguz

    danguz New Pleskian

    10
     
    Joined:
    Feb 8, 2013
    Messages:
    1
    Likes Received:
    0
    Found Solution

    Goto: IP addresses management

    Find the shared IP >> check the box for the Shared IP >> Click Reread IP

    Then click on shared IP and click submit for whatever is select by default.

    It seems the vhost record isn't being added to the httpconf file when signing a new domain using a shared IP.
     
    Last edited: Feb 8, 2013
Loading...