You are not logged in.

#1 2015-08-22 18:39:40

veggen
Member
Registered: 2013-01-29
Posts: 12

Apache 2.4 with the default settings from the repo acts bizarrely

I've installed Apache 2.4 from the official repos. I'm experienced with Apache 2.2 and was hoping I'd be able to figure 2.4 out as well. I was wrong.

/etc/httpd/conf/httpd.conf has the following (comments removed):

DocumentRoot "/srv/http"
<Directory "/srv/http">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

Yet, getting anything from /srv/http gives a 403, even with 777 permissions.
If I set the root to "all granted" as such:

<Directory />
    AllowOverride none
    Require all granted
</Directory>

Visiting http://localhost/ gives out a 404 (wtf? it can't find it's own root directory?)...

i do understand this is not Arch specific, but it is settings-from-Arch-repo specific so I was hoping someone here might be able to help me out...

Last edited by veggen (2015-08-22 18:43:39)

Offline

#2 2015-08-22 18:44:24

veggen
Member
Registered: 2013-01-29
Posts: 12

Re: Apache 2.4 with the default settings from the repo acts bizarrely

Argh. Found the reason 30s after posting.
It was the included /etc/httpd/conf/extra/httpd-vhosts.conf that was messing it up.

Sorry, everyone...

Last edited by veggen (2015-08-22 18:44:44)

Offline

Board footer

Powered by FluxBB