HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Virtual hosting with Apache not working (http://www.howtoforge.com/forums/showthread.php?t=2438)

gimhan90 8th February 2006 06:05

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

falko 8th February 2006 10:37

What exactly is not working?

gimhan90 8th February 2006 10:45

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

falko 8th February 2006 16:14

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.

gimhan90 9th February 2006 04:51

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

till 9th February 2006 09:30

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.

falko 9th February 2006 09:49

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;
?>


gimhan90 10th February 2006 04:57

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

till 10th February 2006 09:39

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.

gimhan90 10th February 2006 11:02

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


All times are GMT +2. The time now is 02:11.

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