Website for ServerName

Discussion in 'General' started by t0rz, May 3, 2012.

  1. t0rz

    t0rz New Member

    Good day,
    say that my ServerName is server.name.gov and it is correctly configured in ISPConfig, and I would like to set up a website for it.

    Adding it the normal way (Sites->Add new website) won't work, as it keeps showing the Apache default page "It works!".

    How could I do that without having it in the default ISPConfig folder (/var/www)?

    Thank you in advance.
     
  2. dclardy

    dclardy New Member

    I have never been able to get this to work. I just take and replace the index.html with this. Replace the URL with the address that you want to redirect to.

    Code:
    <html>
    <head>
    <META HTTP-EQUIV="Refresh" Content="3; URL=http://www.company.com/dir1/">
    </head>
    <body>
    This page will forward to http://www.company.com/dir1/ in three seconds.
    <p>
    Please update your links.
    </body>
    </html>
     
  3. t0rz

    t0rz New Member

    I don't want to use /var/www/, neither with a redirect.
    I want to set up a VirtualHost for my server name, like any other website.
    What's the difference between a normal website and a website which has the same host as the ServerName?

    IPs are the same. Identical.

    Anyone else can answer to this? Perhaps some developer?

    Thank you
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You probably already use your servername in the global Apache configuration. I'd do a search for it in your Apache configuration directory.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Ensure that you selected the correct IP address and not * in the website settings. If your server is located behind a router, then select the internal IP and not external IP.
     
  6. t0rz

    t0rz New Member

    Negative.
    The server name is nowhere besides the newly created virtual host.

    I can't select the IP address for it, as it is shared with other domain having the wildcard. Anyway, If I do that, all the other websites matches THAT virtualhost.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Just switch all sites to use the IP, just dont mix IP and *. Its explained in several posts here in the forum.
     
  8. t0rz

    t0rz New Member

    Why do I have to use a single IP address for ALL my website?!
    I want to be able to have domains that listen on ALL ip address, ALL with the wildcard.
    Nothing else.
    I know this can be done, and if it can't please link me the relative Apache Documentation.
    Also, I succesfully did it with a commercial control panel I have on another dedicated server.

    Please note that I don't want to be polemic, I just want to understand and help to make a better software.

    Thank you

    t0rz
     
  9. dclardy

    dclardy New Member

    Why can't you change the directory of the 000-default vhost in the sites-enabled?
     
  10. t0rz

    t0rz New Member

    Because I don't want that website to be the DEFAULT website.
    I want it to be a normal VirtualHost.
    I see no differences between it and other websites.
    The only difference is that it is the FQDN of the server itself, but that should really has no relevance.

    Plus, I don't want to manually edit the virtualhost files, as this should be done by ISPConfig (that's its purpose, isn't it?)
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats not what I said. I said that you can not mix * and IP addresses in vhosts that point to the same IP, thats all. Thi is explained in several threads here in the forum, a IP address is a stroinger match in apache then a wildcard. As you dont want any links, you might want to search for it yourself.
     
  12. t0rz

    t0rz New Member

    You probably misunderstood me.
    I am unable to use the wildcard with THAT domain. It opens the "It works!" Apache2 page, even if all other domains are configured with the wildcard.

    What do you mean for "you don't want any links?"
    I just don't wan't to use redirects.

    Thank you
     
  13. t0rz

    t0rz New Member

    Bump bump bump.
     

Share This Page