GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Alias directory in Apache - anyone know how to fix... (https://gfy.com/showthread.php?t=399608)

kemp 12-07-2004 08:19 PM

Alias directory in Apache - anyone know how to fix...
 
I set up an Alias directory on my server.

http://fatsluts.info/recips/

But for some reason if you click on any of the files or folders the server says "Not Found"

I set the permissions of the directory to 755 and the files to 644 like the rest of my server is set up but alas - no luck.

Here is the alias I set up (in httpd.conf):

Alias /recips/ "/usr/www/NAME/zrecips"

<Directory "/usr/www/NAME/zrecips">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Am I missing something?

fris 12-07-2004 08:20 PM

why dont you just setup a symbolic link

fris 12-07-2004 08:20 PM

alias is not a command in apache config, you are thinking about ScriptAlias

kemp 12-07-2004 08:26 PM

Symbolic link - Is that what the "FollowSymLinks" option is?

I thought it was something unrelated. That could be the fix. I'll try it fris - thanks.

fris 12-07-2004 08:32 PM

from console ln -s source dest

ln -s /usr/www/NAME/zrecips /home/kemp/recips

or whatever

fuzebox 12-07-2004 08:45 PM

Quote:

Originally posted by fris
alias is not a command in apache config, you are thinking about ScriptAlias
Wtf? :eek7

I use "Alias" for tons of stuff.

http://httpd.apache.org/docs/mod/mod_alias.html

If you don't know for sure, why post anyway?

Quickdraw 12-07-2004 08:47 PM

Try it without the quotes and slash after recipshahahaha
Should be no need for symbolic linking with this
(I don't even use the other part you have and it works great)

Alias /recips /usr/www/NAME/zrecips

Intrigue 12-07-2004 09:14 PM

it's most likely a problem with the trailing slash, either get rid of it in your alias or add it to the directory def.

kemp 12-07-2004 09:21 PM

Intrigue - you got it. It was a problem with the trailing slash.

Thanks for the tip!

Intrigue 12-08-2004 03:02 AM

Quote:

Originally posted by kemp
Intrigue - you got it. It was a problem with the trailing slash.

Thanks for the tip!

np :thumbsup


All times are GMT -7. The time now is 01:38 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123