Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th February 2006, 06:05
gimhan90 gimhan90 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 139
Thanks: 2
Thanked 0 Times in 0 Posts
Default Virtual hosting with Apache not working

Hi folks,


We need to create a virtual server for ispconfig.It's currently running on
https port 81. but not working for the following configurations .Here is vhosts.d file contents

Please look at this .All comments are welcome.

DocumentRoot /home/admispconfig/ispconfig/web/
<Directory "/home/admispconfig/ispconfig/web/">
allow from all
Options +Indexes
</Directory>
SSLEngine on
SSLCertificateFile /root/ispconfig/httpd/conf/ssl.csr/server.csr
SSLCertificateKeyFile /root/ispconfig/httpd/conf/ssl.csr/server.key
SSLProtocol +SSLv2 +TLSv1
ServerAlias admin.example.com
UserDir "/home/admispconfig/ispconfig/web/"


Thx in advance,
gimhan
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2006, 10:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What exactly is not working?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th February 2006, 10:45
gimhan90 gimhan90 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 139
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
What exactly is not working?

my ispconfig is running on port 81 with https.I need to access it with a record alias.cosmoforge.com.I set the virtual server configuration as i mention above.But it dosent work.Page cannot be displayed

Last edited by gimhan90; 8th February 2006 at 14:12.
Reply With Quote
  #4  
Old 8th February 2006, 16:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You mean you want to access ISPConfig using https://alias.cosmoforge.com:81?

Set the URL to https://alias.cosmoforge.com:81 in /home/admispconfig/ispconfig/lib/config.inc.php, then replace admin.example.com with alias.cosmoforge.com in /root/ispconfig/httpd/conf/httpd.conf and restart ISPConfig:
Code:
/etc/init.d/ispconfig_server restart
Of course, alias.cosmoforge.com must point to your ISPConfig server.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th February 2006, 04:51
gimhan90 gimhan90 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 139
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
You mean you want to access ISPConfig using https://alias.cosmoforge.com:81?

Set the URL to https://alias.cosmoforge.com:81 in /home/admispconfig/ispconfig/lib/config.inc.php, then replace admin.example.com with alias.cosmoforge.com in /root/ispconfig/httpd/conf/httpd.conf and restart ISPConfig:
Code:
/etc/init.d/ispconfig_server restart
Of course, alias.cosmoforge.com must point to your ISPConfig server.
Can't i access the ispconfig with out entering the port no ,
like https://alias.cosmoforge.com instead of https://www.cosmoforge.com:81
Reply With Quote
  #6  
Old 9th February 2006, 09:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

The ISPConfig webserver is listening only on port 81. If you want to access ISPConfig without specifying a port in the URL, you need a dedicated IP for the ISPConfig apache webserver.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 9th February 2006, 09:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You could create a file index.php in alias.cosmoforge.com which redirects to https://www.cosmoforge.com:81:

PHP Code:
<?php
header
("Location: https://www.cosmoforge.com:81"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 10th February 2006, 04:57
gimhan90 gimhan90 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 139
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
The ISPConfig webserver is listening only on port 81. If you want to access ISPConfig without specifying a port in the URL, you need a dedicated IP for the ISPConfig apache webserver.
Could you please direct me how to do that if i have a dedicated ip ?
suppose i have an ip address named 66.241.123.143

could u pls tel me the steps i have to follow to do this ?

Thx in adavance,
gimhan
Reply With Quote
  #9  
Old 10th February 2006, 09:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

Quote:
Originally Posted by gimhan90
Could you please direct me how to do that if i have a dedicated ip ?
suppose i have an ip address named 66.241.123.143

could u pls tel me the steps i have to follow to do this ?

Thx in adavance,
gimhan
I meant a dedicated IP for the ISPCOnfig webserver that listens on port 81. This means he minimum for this configuration are 2 IP addresses, one for the ISPCOnfig apache and one for the main apache webserver.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 10th February 2006, 11:02
gimhan90 gimhan90 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 139
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till
I meant a dedicated IP for the ISPCOnfig webserver that listens on port 81. This means he minimum for this configuration are 2 IP addresses, one for the ISPCOnfig apache and one for the main apache webserver.

How can we configure it ? Do we need to dirtect the port (81) through DNS server ?
or .. any ither process
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 and multiple SSL configs and name based virtual hosting Creator1326 Server Operation 11 5th October 2010 19:28
Virtual Hosting: How do I set this up? VinceDee Installation/Configuration 7 12th December 2006 18:36
Virtual Hosting with Postfix alexej HOWTO-Related Questions 26 27th May 2006 05:46
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58
virtual hosting m u r Installation/Configuration 2 21st August 2005 15:49


All times are GMT +2. The time now is 05:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.