LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache alias / subdirectories problems (https://www.linuxquestions.org/questions/linux-software-2/apache-alias-subdirectories-problems-244279/)

cavingreer 10-18-2004 02:25 PM

Apache alias / subdirectories problems
 
I'm running Apache 2 on FC2 and I have a couple of virtualhost domains set up just fine. I'd like to think I'm not so much of a noob that I can't figure or google this out but I'm stumped.

In my setup, my primary domain is under /var/www/html/domain
I have others in /var/www/html/somethingelse and
/var/www/html/anotherdomain

I'm trying to set up another page in a subdirectory of the main domain and no matter what I've tried I get a 403 error. I've tried using an alias .conf file for the directory but that hasn't helped. I also tried adding the alias in my virtualhost section of my server.

How do you get apache to allow viewing of a subdirectory of a document root????

david_ross 10-18-2004 02:48 PM

If you are trying to view the directory contents then make sure you have the "Indexes" Option enabled for the directory. If it happens with every file then make sure that the user your webserver is running as has read access to the files and read and execute access to the directory.

cavingreer 10-18-2004 03:16 PM

I've got

<virtualhost *:80>
Serveradmin postmaster@mydomain
DocumentRoot /var/www/html/mydomain
Servername www.mydomain.com
ErrorLog logs/mydomain-error_log
Alias /myalias "/var/www/html/myalias"
<directory "/var/www/html/myalias">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</directory>
</virtualhost>

apache owns the directory and all contents just like every other directory on the server.

I can now see the alias but I have another problem.
I'm trying to set this up so I can FTP into an alias or directory and upload files.
How do you get a user set up so that they can ftp in but the world can see the html ?


All times are GMT -5. The time now is 10:08 AM.