[PLUG] RESOLVED -- Re: Ubuntu 10.10 and Apache2 configuration files
frankhunt
fh-linux at comcast.net
Wed Oct 6 15:41:54 UTC 2010
On 10/05/2010 04:19 PM, Michael Rasmussen wrote:
> On Tue, Oct 05, 2010 at 08:46:59AM -0700, frank hunt wrote:
>> The culprit was incorrectly formatted virtual host configs. You'd think
>> there would be some kind of error more appropriate to the problem.
>> Anyway - 3 days of chasing my tail and now we're golden.
> Could you provide more details on this?
> Could bite someone else some time.
>
>
Sure -
The /etc/apache2/sites-available/default config files are below - in
both cases apache2.conf was the same. The main differences are
apparent. Primarily in the definitions of the vhosts. Other gotchas
that I had to overcome were specific to my sites and testing methodology
- mainly in /etc/host.
================
On 10/05/2010 04:19 PM, Michael Rasmussen wrote:
> On Tue, Oct 05, 2010 at 08:46:59AM -0700, frank hunt wrote:
>> The culprit was incorrectly formatted virtual host configs. You'd think
>> there would be some kind of error more appropriate to the problem.
>> Anyway - 3 days of chasing my tail and now we're golden.
> Could you provide more details on this?
> Could bite someone else some time.
>
>
Original Version that works fine on Debian 4.0 and apache2 v2.2.3
NameVirtualHost www.myhost.com
<VirtualHost www.myhost.com>
DocumentRoot /web/httpd/htdocs/
ServerName www.myhost.com
ServerAlias myhost.com
ScriptAlias /cgi-bin/ /web/httpd/cgi-bin/
ErrorLog /web/httpd/logs/error_log
LogLevel warn
CustomLog /web/httpd/logs/access_log combined
ServerAdmin webbguy at localhost
Alias /doc/ "/usr/share/doc/"
<Directory />
Options FollowSymLinks ExecCGI
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<virtualHost www.myotherhost.com>
DocumentRoot /web/httpd/htdocs/myotherhost/
ServerName www.myotherhost.com>
ServerAlias myotherhost.com
ServerAdmin webbguy at localhost
ErrorLog /web/httpd/logs/error_log2
CustomLog /web/httpd/logs/access_log2 combined
LogLevel warn
</VirtualHost>
========================
New Version that now works with Ubuntu 10.10 (beta) and apache2 v 2.2.16
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /web/httpd/htdocs
ServerName www.myhost.com
ServerAlias myhost.com
ScriptAlias /cgi-bin/ /web/httpd/cgi-bin/
ErrorLog /web/httpd/logs/error_log
LogLevel warn
CustomLog /web/httpd/logs/access_log combined
ServerAdmin webbguy at localhost
Alias /doc/ "/usr/share/doc/
<Directory />
Options FollowSymLinks ExecCGI
AllowOverride All
</Directory>
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /web/httpd/htdocs/myotherhost
ServerName www.myotherhost.com
ServerAlias myotherhost.com
ServerAdmin webbguy at localhost
ErrorLog /web/httpd/logs/error_log2
CustomLog /web/httpd/logs/access_log2 combined
LogLevel warn
</VirtualHost>
--
frank hunt
(L0F) R0B-ZAR1
befuddled linux admin
erstwhile photographer
hillsboro oregon
More information about the PLUG
mailing list