
3rd May 2012, 20:46
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: 127.0.0.255
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Website for ServerName
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.
|

3rd May 2012, 21:08
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Dallas, TX
Posts: 306
Thanks: 10
Thanked 35 Times in 22 Posts
|
|
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>
|

3rd May 2012, 21:30
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: 127.0.0.255
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by dclardy
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>
|
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
|

4th May 2012, 09:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
You probably already use your servername in the global Apache configuration. I'd do a search for it in your Apache configuration directory.
|

4th May 2012, 09:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,883
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
Quote:
Originally Posted by t0rz
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.
|
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.
|

4th May 2012, 10:53
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: 127.0.0.255
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by falko
You probably already use your servername in the global Apache configuration. I'd do a search for it in your Apache configuration directory.
|
Negative.
The server name is nowhere besides the newly created virtual host.
Quote:
|
Originally Posted by till
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.
|
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.
|

4th May 2012, 10:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,883
Thanks: 691
Thanked 4,188 Times in 3,205 Posts
|
|
Quote:
|
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.
|
Just switch all sites to use the IP, just dont mix IP and *. Its explained in several posts here in the forum.
|

4th May 2012, 21:32
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: 127.0.0.255
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
Just switch all sites to use the IP, just dont mix IP and *. Its explained in several posts here in the forum.
|
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
|

4th May 2012, 21:45
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Dallas, TX
Posts: 306
Thanks: 10
Thanked 35 Times in 22 Posts
|
|
Why can't you change the directory of the 000-default vhost in the sites-enabled?
|

4th May 2012, 22:18
|
|
Junior Member
|
|
Join Date: Apr 2012
Location: 127.0.0.255
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by dclardy
Why can't you change the directory of the 000-default vhost in the sites-enabled?
|
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?)
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 03:36.
|
Recent comments
2 days 18 hours ago
3 days 3 hours ago
3 days 6 hours ago
3 days 7 hours ago
3 days 8 hours ago
3 days 10 hours ago
3 days 11 hours ago
3 days 13 hours ago
4 days 5 hours ago
4 days 6 hours ago