|
Home > Archive > Apache Server configuration support > June 2007 > Vhosts on Apache 2.2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Vhosts on Apache 2.2
|
|
| thomas.schager@gmail.com 2007-06-13, 1:24 pm |
| 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]
<VirtualHost *>
ServerName <first.vhost>
DirectoryIndex index.php
DocumentRoot /var/www/html/<first.vhost>/
ServerPath /fiap/<first.vhost>
ErrorLog /var/log/httpd/<first.vhost>_error_log
ErrorLog /var/log/httpd/gesamt_error_log
TransferLog /var/log/httpd/<first.vhost>_access_log
TransferLog /var/log/httpd/gesamt_access_log
</VirtualHost>
<VirtualHost *>
ServerName <second.vhost>
DirectoryIndex index.php
DocumentRoot /var/www/html/<second.vhost>
ErrorLog /var/log/httpd/<second.vhost>_error_log
ErrorLog /var/log/httpd/gesamt_error_log
TransferLog /var/log/httpd/<second.vhost>_access_log
TransferLog /var/log/httpd/gesamt_access_log
</VirtualHost>
[/snip]
Thanks in advance,
Thomas
| |
| Davide Bianchi 2007-06-13, 1:24 pm |
| On 2007-06-13, thomas.schager@gmail.com <thomas.schager@gmail.com> wrote:
> 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?
Davide
--
Windows and DOS -- a turtle and it's shell.
| |
| thomas.schager@gmail.com 2007-06-13, 1:24 pm |
| > > With a beginning "NameVirtualHost *", the server returns a "Bad
>
> 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
| |
| Davide Bianchi 2007-06-13, 1:24 pm |
| On 2007-06-13, thomas.schager@gmail.com <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
--
Bell Atlantic. If telecommunications were a prison, BA would be the
300-pound inmate who takes a certain..."liking" towards you.
--Isaac-Lew
| |
|
| Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in
news:slrnf6vu10.4hs.davideyeahsure@fogg.onlyforfun.net:
> On 2007-06-13, thomas.schager@gmail.com <thomas.schager@gmail.com>
wrote:
>
> 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 webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
|
|
|
|
|