You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by fs...@vpcl.on.ca on 2006/11/03 18:37:14 UTC
[users@httpd] Having problem getting Alias's to work....
Hi:
I'm new to apache and I am having some real troubles getting an alias to
work. I'm using apache 1.3.29 on OpenBSD 3.8
I can get an alias to work if it's in the /var/www/ directory but I can't
alias to anything elsewhere on the file system. I've chmod'd this and
chgrp'd that but no luck.
Here is what I'm trying to do: I have a folder called "fred" in the root
of the file system. Inside that folder is a file called index.html. This
is what I'm trying to access.
In my httpd.conf:
Alias /fred "/fred/"
<Directory "/fred">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
>From a browser I can access the default apache page in /var/www/htdocs by
pointing the browser to http://ServerName no problem.
If I try the following:
http://ServerName/fred or...
http://ServerName/fred/ or...
http://ServerName/fred/index.html
I get (respectively):
The Webpage Cannot Be Found - 404 message in browser
File does not exist: /fred/ - in error_log
The Webpage Cannot Be Found - 404 message in browser
File does not exist: /fred// - in error_log
Forbidden - You don't have permission to access /fred/index.html
on this server. - in browser
(2)No such file or directory: cannot read directory for multi:
/fred//
My file permissions on the directory are as follows:
drwxr-xr-x 2 root daemon 512 Nov 3 10:44 fred/
My file permissions within the directory are as follows:
drwxr-xr-x 2 root daemon 512 Nov 3 10:44 ./
drwxr-xr-x 19 root wheel 512 Nov 3 10:43 ../
-r--r--r-- 1 root bin 3491 Nov 3 10:44 index.html
I've been playing around with various scenarios and configurations for
days, but I can't get it figured out. Any help would be appreciated...
Thanks
Fred
Re: [users@httpd] Having problem getting Alias's to work....
Posted by Joshua Slive <jo...@slive.ca>.
[Do you know that you are sending html mail with font size="1" (the
smallest possible size -- almost unreadable)? This almost caused me
to delete your email without even reading it. If you must send html
(and you really shouldn't), at least use a decent-sized font.]
On 11/3/06, fschnittke@vpcl.on.ca <fs...@vpcl.on.ca> wrote:
>
> Alias /fred "/fred/"
The trailing slashes need to match. Try
Alias /fred /fred
You may also be missing some crucial modules like mod_dir.
Joshua.
---------------------------------------------------------------------
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