dmnokia Posted August 7, 2003 Report Share Posted August 7, 2003 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 Quote Link to comment Share on other sites More sharing options...
paul Posted August 7, 2003 Report Share Posted August 7, 2003 you need to edit /etc/httpd/conf/ssl/ssl.default-vhost.conf as well this will work the same as you vhost.conf file each https vhost needs to be configured in here Quote Link to comment Share on other sites More sharing options...
dmnokia Posted August 7, 2003 Author Report Share Posted August 7, 2003 Hi Paul, I will check it but why my default server and virtual server dont work with http ?? thx for your help, D.M Quote Link to comment Share on other sites More sharing options...
paul Posted August 7, 2003 Report Share Posted August 7, 2003 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 Quote Link to comment Share on other sites More sharing options...
dmnokia Posted August 8, 2003 Author Report Share Posted August 8, 2003 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.