LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Linux-apache (https://www.linuxquestions.org/questions/linux-networking-3/linux-apache-15253/)

aparna_chi 02-28-2002 05:14 AM

Linux-apache
 
Hi,
I am logged as root on my linux machine.
My apache server is located in /u01/app/oracle/product/8.1.7/Apache/Apache
.

I have created one directory on root and placed a html file in it.
I have put it's alias as
follow
Alias /test/ "/root/test/"

But I am not able to access it.
I get the error
ForBidden
You do not have permission to access.

Why is that?
Please can anybody tell the solution fast?

trickykid 02-28-2002 09:27 AM

is this when your trying to access it from a browser or just trying to access it ?? if from a browser.. apache probably isn't setup to use the /root directory to place html files... probably not a good idea either.

aparna_chi 02-28-2002 10:06 PM

Well that's true .
I get the error while accessing it from browser.
But even if I place it somewhere else it doesn't work.
How do we create a virtual directory on linux?

Syncrm 03-01-2002 04:40 AM

might not wanna have the owner of your files be root either... and make sure that you have read enabled globally for the files you're trying to access.

but yeah... not a good idea to keep your files in the /root dir. security risk...

usually, what i do is leave the files in the default apache htdocs dir, and then just create a sym link to it in my ~/.

and for your "alias" query, i don't think you wanna use virtual hosts, you should be able to just use a symlink and that should solve the problem:

ln -s /your/target/path /your/sym/link


All times are GMT -5. The time now is 09:49 PM.