LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2004, 03:25 PM   #1
cavingreer
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
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????
 
Old 10-18-2004, 03:48 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 10-18-2004, 04:16 PM   #3
cavingreer
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Alias questions xemous Linux - Networking 1 08-21-2005 09:04 AM
apache alias problem kausti Linux - Networking 3 11-06-2004 08:58 PM
Apache - 403 Forbidden - Access to Subdirectories dieter Linux - Networking 2 03-25-2004 01:51 PM
Hosting and using SubDirectories in Apache apocolipse Slackware 1 12-21-2003 11:11 PM
Alias directive in Apache 1.3.22 mswebs Linux - Networking 2 08-01-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration