Jump to content

Mandrake 9.1 and apache 2.045 virtual servers problem


dmnokia
 Share

Recommended Posts

I have a Mandrake 9.1 box with apache 2.0.45 installed.

In the default configuration I can access to default domain with http and https. When I add a virtual

host to /etc/httpd/conf/vhosts/Vhosts.conf file I cant contact my default domain with https (I can access virtual domain with http protocol). If I want to connect my default site with http, my new virtual site comes .

 

What should I do for my default domain? I want to run my default domain with http and https protocol and my virtual servers at a time.

 

I only changed the /etc/httpd/conf/vhost/Vhost.conf file given below.

-----------------------------------------------

NameVirtualHost 10.2.1.247

<VirtualHost *>

ServerAdmin dm@testpc.domain.com

DocumentRoot /var/www/html/mysource/web

ServerName testpc01.domain.com

 

<Directory /var/www/html/mysource/web>

AllowOverride All

Order allow,deny

Allow from all

</Directory>

 

<Directory /var/www/html/mysource/squizlib>

AllowOverride All

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

<VirtualHost *>

ServerAdmin dm@testpc.domain.com

DocumentRoot /var/www/html/

ServerName testpc.domain.com

<Directory /var/www/html/>

AllowOverride All

Order allow,deny

Allow from all

</Directory>

CustomLog logs/testpc.domain.com-access_log "combined"

ErrorLog logs/testpc.domain.com-error_log

</VirtualHost>

-----------------------------------------------

 

Any help is welcome

 

D.M

Link to comment
Share on other sites

I would change this line

<VirtualHost *>

to this

<VirtualHost 192.168.x.x>

 

here's what mine looks like

 

<VirtualHost 192.168.1.2>

       DocumentRoot /var/www/html/loudas.com

       ServerName loudas.com

       ServerAlias www.loudas.com

       CustomLog logs/loudas.com-access_log combined

</VirtualHost>



<VirtualHost 192.168.1.2>

       DocumentRoot /var/www/html/dragon.loudas.com

       ServerName dragon.loudas.com

       ServerAlias ifgfhayward.loudas.com

       CustomLog logs/dragon.loudas.com-access_log combined

</VirtualHost>

and the default is the first one in the list

Link to comment
Share on other sites

Hi Paul,

 

When I change "*" my eth0 IP all http virtual servers and my default servers work :-)

But my default https stop the work.

I think I should change something in

/etc/httpd/conf.d/41_mod_ssl.default-vhost.conf ??

 

what should I do for virtual https servers ??

 

thx for your helps,

 

D.M

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...