Vhosts on Apache 2.2
am 13.06.2007 15:30:26 von thomas.schager
Hi,
I try to configure virtual hosts on a Apache 2.2, Mandriva 2007.
apachectl configtest returns syntax OK, and httpd -S shows all vhosts.
With a beginning "NameVirtualHost *", the server returns a "Bad
request!" message. So I tried the following configuration without the
NameVirtualHost directive.
The problem now is, that all request are handled through the first
virtual host, and I can't access the following virtual hosts. What's
wrong with my configuration?
[snip]
ServerName
DirectoryIndex index.php
DocumentRoot /var/www/html//
ServerPath /fiap/
ErrorLog /var/log/httpd/_error_log
ErrorLog /var/log/httpd/gesamt_error_log
TransferLog /var/log/httpd/_access_log
TransferLog /var/log/httpd/gesamt_access_log
ServerName
DirectoryIndex index.php
DocumentRoot /var/www/html/
ErrorLog /var/log/httpd/_error_log
ErrorLog /var/log/httpd/gesamt_error_log
TransferLog /var/log/httpd/_access_log
TransferLog /var/log/httpd/gesamt_access_log
[/snip]
Thanks in advance,
Thomas
Re: Vhosts on Apache 2.2
am 13.06.2007 15:41:54 von unknown
Post removed (X-No-Archive: yes)
Re: Vhosts on Apache 2.2
am 13.06.2007 15:56:14 von thomas.schager
> > With a beginning "NameVirtualHost *", the server returns a "Bad
> > request!" message.
>
> No, you need the 'NameVirtualHost' directive, when does he return the
> 'bad request' message? what is in the error_log file in that case?
Hmm... there seems to be a error in die SSL configuration. But I did
no SSL accesses at all...
[Wed Jun 13 15:51:48 2007] [error] VirtualHost _default_:443 -- mixing
* ports and non-* ports with
a NameVirtualHost address is not supported, proceeding with undefined
results
Re: Vhosts on Apache 2.2
am 13.06.2007 15:59:04 von unknown
Post removed (X-No-Archive: yes)
Re: Vhosts on Apache 2.2
am 14.06.2007 03:04:36 von mark
Davide Bianchi wrote in
news:slrnf6vu10.4hs.davideyeahsure@fogg.onlyforfun.net:
> On 2007-06-13, thomas.schager@gmail.com
wrote:
>> [Wed Jun 13 15:51:48 2007] [error] VirtualHost _default_:443 -- mixing
>> * ports and non-* ports with
>> a NameVirtualHost address is not supported, proceeding with undefined
>> results
>
> Ah, that's standard configuration for ssl. Use NameVirtualHost *:80
> and VirtualHost *:80 instead of just '*'.
>
> Davide
>
In addition to that I would tell apache NOT to load the SSL conf file.
--
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----