You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kevin Kempter <ke...@kevinkempterllc.com> on 2009/04/07 21:39:46 UTC
[users@httpd] no permission to access an AliasMatch Directory ?
Hi All;
I have a laptop running Fedora10 x86_64.
I started the default config and I can go to http://localhost and I see the
expected Fedora Test Page.
I want to install a web site in /stage/webpages/csweb (/stage is a separate
file system) so I did this:
1) I checked to make sure the httpd.conf file was including the conf.d/* files
with this line in the httpd.conf file:
Include conf.d/*.conf
2) I added this file (named csweb.conf) to the /etc/httpd/conf.d directory:
#
# Setup directory: /stage/webpages/csweb
#
AliasMatch ^/csweb(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$
"/stage/webpages/csweb$1"
<Directory "/stage/webpages/csweb">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I restarted apache (service httpd restart) and I go to
"http://localhost/csweb" and I get this:
============================================
Forbidden
You don't have permission to access /csweb on this server
============================================
Here's my Linux permissions on the directories:
/stage:
(ls -l / | grep stage)
drwxrwxrwx 18 root root 4096 2009-04-07 10:45 stage
/stage/webpages
(ls -l /stage | grep webpages)
drwxrwxr-x 4 kkempter kkempter 4096 2009-04-07 10:46 webpages
/stage/webpages/csweb
(ls -l /stage/webpages | grep csweb)
drwxrwxr-x 17 kkempter kkempter 4096 2009-04-07 12:41 csweb
Thoughts ?
Thanks in advance
Re: [users@httpd] no permission to access an AliasMatch Directory ?
Posted by Eric Covener <co...@gmail.com>.
On Tue, Apr 7, 2009 at 3:39 PM, Kevin Kempter <ke...@kevinkempterllc.com> wrote:
> Hi All;
> AliasMatch ^/csweb(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$
> "/stage/webpages/csweb$1"
>
>
> <Directory "/stage/webpages/csweb">
> Options Indexes
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
>
>
> I restarted apache (service httpd restart) and I go to
> "http://localhost/csweb" and I get this:
>
>
> ============================================
> Forbidden
>
>
> You don't have permission to access /csweb on this server
>
> ============================================
>
Your error log will tell you whether the failure is related to the
Apache configuration or the OS (filesystem permissions, SELinux, etc)
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org