[olug] HTTPD vhosts

Dave Rowe dave at roweware.com
Tue Jan 1 22:49:58 UTC 2013


Sorry, extra '/' between var and web - should be /var/web


On Tue, Jan 1, 2013 at 4:49 PM, Dave Rowe <dave at roweware.com> wrote:

> I'd add the following to your configuration, based on the previous pasted
> config:
>
> <Directory "/var//web">
>   Options Index
>   AllowOverride All
>   Allow from All
> </Directory>
>
> and reload / restart Apache.  Options Index will give you the directory
> listings, instead of the 403.
>
>
> On Tue, Jan 1, 2013 at 4:41 PM, Sam Flint <harmonicnm7h at gmail.com> wrote:
>
>> From error_log
>> [Tue Jan 01 03:16:59 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3
>> mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_perl/2.0.4 Perl/v5.10.1 configured
>> --
>> resuming normal operations
>> [Tue Jan 01 14:43:35 2013] [error] [client 192.168.1.104] Directory index
>> forbidden by Options directive: /var/web/flintfam.org/
>> [Tue Jan 01 14:43:35 2013] [error] [client 192.168.1.104] File does not
>> exist: /var/web/flintfam.org/error
>> [Tue Jan 01 14:43:37 2013] [error] [client 192.168.1.104] File does not
>> exist: /var/web/flintfam.org/favicon.ico
>> [Tue Jan 01 15:34:43 2013] [error] [client 192.168.1.104] Directory index
>> forbidden by Options directive: /var/web/flintfam.org/
>> [Tue Jan 01 15:34:43 2013] [error] [client 192.168.1.104] File does not
>> exist: /var/web/flintfam.org/error
>> [Tue Jan 01 15:34:43 2013] [error] [client 192.168.1.104] File does not
>> exist: /var/web/flintfam.org/favicon.ico
>> [Tue Jan 01 15:35:23 2013] [error] [client 192.168.1.104] Directory index
>> forbidden by Options directive: /var/web/flintfam.org/
>> [Tue Jan 01 15:35:23 2013] [error] [client 192.168.1.104] File does not
>> exist: /var/web/flintfam.org/error
>> [Tue Jan 01 15:35:23 2013] [error] [client 192.168.1.104] File does not
>> exist: /var/web/flintfam.org/favicon.ico
>>
>>
>>
>>
>> On Tue, Jan 1, 2013 at 4:23 PM, Dave Rowe <dave at roweware.com> wrote:
>>
>> > Did you check the error log?
>> > On Jan 1, 2013 4:17 PM, "Sam Flint" <harmonicnm7h at gmail.com> wrote:
>> >
>> > > apache, yes, but i have tried that...userdirs aren't even set up yet
>> > >
>> > >
>> > > On Tue, Jan 1, 2013 at 3:38 PM, Dave Rowe <dave at roweware.com> wrote:
>> > >
>> > > > What user is running Apache?  'apache'? 'www-data'?  'root'?
>> > > >
>> > > > That user needs read (and possibly execute on parent directories) of
>> > > > anything you're trying to expose.  I believe that applies to
>> userdirs
>> > as
>> > > > well.
>> > > >
>> > > > -Dave
>> > > >  On Jan 1, 2013 3:32 PM, "Sam Flint" <harmonicnm7h at gmail.com>
>> wrote:
>> > > >
>> > > > > the user does, so i don't think that's it, and what about
>> userdirs?
>> > > > >
>> > > > >
>> > > > > On Tue, Jan 1, 2013 at 2:53 PM, Dave Rowe <dave at roweware.com>
>> wrote:
>> > > > >
>> > > > > > Check the Apache error log, but I don't think you'll get a 403
>> on a
>> > > > > system
>> > > > > > file.
>> > > > > >
>> > > > > > Then check permissions on the document roots you have defined.
>>  If
>> > > the
>> > > > > > docroot is in a sub directory, ensure the Apache user (or
>> whoever
>> > > runs
>> > > > > > Apache) has read access on the parent directories.
>> > > > > > On Jan 1, 2013 2:44 PM, "Sam Flint" <harmonicnm7h at gmail.com>
>> > wrote:
>> > > > > >
>> > > > > > > didn't work
>> > > > > > >
>> > > > > > >
>> > > > > > > On Mon, Dec 31, 2012 at 6:07 PM, Lou Duchez <
>> lou at paprikash.com>
>> > > > wrote:
>> > > > > > >
>> > > > > > > > That's good, it means your permissions are off.  Try this:
>> > > > > > > >
>> > > > > > > > chown root:root /etc/mime.types
>> > > > > > > > chmod a+r /etc/mime.types
>> > > > > > > >
>> > > > > > > >
>> > > > > > > >  nowi get a 403 forbidden error
>> > > > > > > >>
>> > > > > > > >>
>> > > > > > > >> On Mon, Dec 31, 2012 at 3:33 PM, Lou Duchez <
>> > lou at paprikash.com>
>> > > > > > wrote:
>> > > > > > > >>
>> > > > > > > >>  Here's my /etc/mime.types:
>> > > > > > > >>>
>> > > > > > > >>> http://www.paprikash.com/mime.****types<
>> > > > > > > http://www.paprikash.com/mime.**types>
>> > > > > > > >>> <http://www.paprikash.**com/mime.types<
>> > > > > > > http://www.paprikash.com/mime.types>
>> > > > > > > >>> >
>> > > > > > > >>>
>> > > > > > > >>>
>> > > > > > > >>>
>> > > > > > > >>>
>> > > > > > > >>>   it failed entirenly, no error to the console, but looks
>> > like
>> > > i
>> > > > > > need a
>> > > > > > > >>>
>> > > > > > > >>>> non-existent mime.types file, could i get a copy of
>> > someones?
>> > > > > > > >>>>
>> > > > > > > >>>>
>> > > > > > > >>>> On Mon, Dec 31, 2012 at 12:33 PM, Christopher Cashell
>> > > > > > > >>>> <topher-olug at zyp.org>wrote:
>> > > > > > > >>>>
>> > > > > > > >>>>   On Mon, Dec 31, 2012 at 12:23 PM, Dave Rowe <
>> > > > dave at roweware.com>
>> > > > > > > >>>> wrote:
>> > > > > > > >>>>
>> > > > > > > >>>>> Do you have entries in your /etc/hosts file for each of
>> > those
>> > > > > > > >>>>>>
>> > > > > > > >>>>>>  'ServerName'
>> > > > > > > >>>>>
>> > > > > > > >>>>>  entries?  You can map them to 127.0.0.1 in /etc/hosts,
>> > since
>> > > > it
>> > > > > is
>> > > > > > > >>>>>> local
>> > > > > > > >>>>>>
>> > > > > > > >>>>>>  to
>> > > > > > > >>>>>
>> > > > > > > >>>>>  your machine.
>> > > > > > > >>>>>>
>> > > > > > > >>>>>>  Not just the ServerName entries, but also make sure
>> the
>> > > > locally
>> > > > > > > >>>>> assigned hostname can be looked up.  Can you show us the
>> > > output
>> > > > > of
>> > > > > > > the
>> > > > > > > >>>>> following commands?
>> > > > > > > >>>>>
>> > > > > > > >>>>> hostname
>> > > > > > > >>>>> domainname
>> > > > > > > >>>>> host hopper.flintfam.org
>> > > > > > > >>>>> ping -c1 hopper.flintfam.org
>> > > > > > > >>>>> grep -i hopper.flintfam.org /etc/hosts
>> > > > > > > >>>>>
>> > > > > > > >>>>>   -Dave
>> > > > > > > >>>>> --
>> > > > > > > >>>>> Christopher
>> > > > > > > >>>>> ______________________________****_________________
>> > > > > > > >>>>> OLUG mailing list
>> > > > > > > >>>>> OLUG at olug.org
>> > > > > > > >>>>> https://lists.olug.org/****mailman/listinfo/olug<
>> > > > > > > https://lists.olug.org/**mailman/listinfo/olug>
>> > > > > > > >>>>> <https://**lists.olug.org/mailman/**listinfo/olug<
>> > > > > > > https://lists.olug.org/mailman/listinfo/olug>
>> > > > > > > >>>>> >
>> > > > > > > >>>>>
>> > > > > > > >>>>>
>> > > > > > > >>>>>
>> > > > > > > >>>>  ______________________________****_________________
>> > > > > > > >>> OLUG mailing list
>> > > > > > > >>> OLUG at olug.org
>> > > > > > > >>> https://lists.olug.org/****mailman/listinfo/olug<
>> > > > > > > https://lists.olug.org/**mailman/listinfo/olug>
>> > > > > > > >>> <https://**lists.olug.org/mailman/**listinfo/olug<
>> > > > > > > https://lists.olug.org/mailman/listinfo/olug>
>> > > > > > > >>> >
>> > > > > > > >>>
>> > > > > > > >>>
>> > > > > > > >>
>> > > > > > > >>
>> > > > > > > > ______________________________**_________________
>> > > > > > > > OLUG mailing list
>> > > > > > > > OLUG at olug.org
>> > > > > > > > https://lists.olug.org/**mailman/listinfo/olug<
>> > > > > > > https://lists.olug.org/mailman/listinfo/olug>
>> > > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > --
>> > > > > > > Sam Flint
>> > > > > > > flintfam.org/~swflint
>> > > > > > > _______________________________________________
>> > > > > > > OLUG mailing list
>> > > > > > > OLUG at olug.org
>> > > > > > > https://lists.olug.org/mailman/listinfo/olug
>> > > > > > >
>> > > > > > _______________________________________________
>> > > > > > OLUG mailing list
>> > > > > > OLUG at olug.org
>> > > > > > https://lists.olug.org/mailman/listinfo/olug
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Sam Flint
>> > > > > flintfam.org/~swflint
>> > > > > _______________________________________________
>> > > > > OLUG mailing list
>> > > > > OLUG at olug.org
>> > > > > https://lists.olug.org/mailman/listinfo/olug
>> > > > >
>> > > > _______________________________________________
>> > > > OLUG mailing list
>> > > > OLUG at olug.org
>> > > > https://lists.olug.org/mailman/listinfo/olug
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Sam Flint
>> > > flintfam.org/~swflint
>> > > _______________________________________________
>> > > OLUG mailing list
>> > > OLUG at olug.org
>> > > https://lists.olug.org/mailman/listinfo/olug
>> > >
>> > _______________________________________________
>> > OLUG mailing list
>> > OLUG at olug.org
>> > https://lists.olug.org/mailman/listinfo/olug
>> >
>>
>>
>>
>> --
>> Sam Flint
>> flintfam.org/~swflint
>> _______________________________________________
>> OLUG mailing list
>> OLUG at olug.org
>> https://lists.olug.org/mailman/listinfo/olug
>>
>
>



More information about the OLUG mailing list