Hello I dont know what apache configs are like in suse 10 but in 9.3, here is how ive got things setup the listen.conf file: ============= Listen 195.204.179.8:80 <IfDefine SSL> <IfDefine !NOSSL> <IfModule mod_ssl.c> Listen 443 </IfModule> </IfDefine> </IfDefine> NameVirtualHost 195.204.179.8 the virtual host files under /etc/apache2/vhost.d/: =================================== FIRST OF ALL: i recommend that you would name your config in a running order. example: 1-hostip.conf 2-hostname.conf 3-dev-novita-no.conf for the 1-hostip.conf use the following: <VirtualHost 195.204.179.8> Include /etc/apache2/conf.d/*.conf DirectoryIndex index.html index.htm index.php default.html default.htm default.php ServerAdmin webmaster@novita ServerName 195.204.179.8 HostnameLookups Off UseCanonicalName Off ServerSignature Off ErrorLog /var/log/apache2/error_log CustomLog /var/log/apache2/access_log combined ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/" DocumentRoot /srv/www/htdocs <Directory "/srv/www/cgi-bin"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <Directory "/srv/www/htdocs"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> for the 2-hostname.conf use the following: <VirtualHost 195.204.179.8> Include /etc/apache2/conf.d/*.conf DirectoryIndex index.html index.htm index.php default.html default.htm default.php ServerAdmin webmaster@novita ServerName myserver.novita.no HostnameLookups Off UseCanonicalName Off ServerSignature Off ErrorLog /path/to/your/web_logs/myserver-error_log CustomLog /path/to/your/web_logs/myserver-access_log combined ScriptAlias /cgi-bin/ "/path/to/your/doc_root/cgi-bin/" DocumentRoot /path/to/your/doc_root/public <Directory "/path/to/your/doc_root/cgi-bin"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <Directory "/path/to/your/doc_root/public"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> and for the website 3-web.conf use this: <VirtualHost 195.204.179.8> Include /etc/apache2/conf.d/*.conf DirectoryIndex index.html index.htm index.php default.html default.htm default.php ServerAdmin webmaster@novita ServerName dev.novita.no HostnameLookups Off UseCanonicalName Off ServerSignature Off ErrorLog /path/to/your/web_log/devsite-error_log CustomLog /path/to/your/web_log/devsite-access_log combined ScriptAlias /cgi-bin/ "/path/to/your/doc_root/cgi-bin/" DocumentRoot /path/to/your/doc_root <Directory "/path/to/your/doc_root/cgi-bin"> AllowOverride None Options +ExecCGI -Includes Order allow,deny Allow from all </Directory> <Directory "/path/to/your/doc_root"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> so now youve got some basic options you can tweak add or remove from your configs, good luck oh, and ofcourse restart apache when done :) regards RP On 1/5/06, Andreas H <div@hvatum.com> wrote:
Hallo.
I got a problem with my name-based virtual hosting. I have run the apache2ctl -S, but the syntax-test return OK (see below).
If I try to connect through my ip-address(http://195.204.179.8). I see/reach the default serverroot-page. That's correct. But when I try dev.novita.no I got "Unable to connect to remote host." The dev.novita.no points to 195.204.179.8
I can't find any http-request inside the logs too.
Can someone see where my problem is?
From my configuration files: Listen 80 NameVirtualHost *:80
<VirtualHost *:80> ServerName dev.novita.no DocumentRoot /srv/www/vhosts/dev ErrorLog /var/log/apache2/dev.novita.no-error_log CustomLog /var/log/apache2/dev.novita.no-access_log combined </VirtualHost>
ls -l /srv/www/vhosts: drwxr-xr-x 3 he users 72 Jan 4 10:48 . drwxr-xr-x 4 root root 96 Jan 4 13:26 .. drwxr-xr-x 10 he users 304 Jan 3 13:09 dev
<Directory /srv/www/vhosts> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
apache2ctl -S: VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost port 80 namevhost dev.novita.no (/etc/apache2/vhosts.d/dev.conf:1)
SuSE 10 apache2-prefork-2.0.54-10 apache2-2.0.54-10
Cheers Andreas H
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- ___________________________ If computers were made in heaven, would they be perfect? ___________________________