Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

same 'ol question: how to add a directory to my website

Status
Not open for further replies.

Alcar

Programmer
Sep 10, 2001
595
US
hi there,
I am a first timer in trying to set up an apache web service.
I just created a subfolder for my website and I am trying to configure the Apache to view it correctly:

on server:

in <Directory /Options -Indexes
AllowOverride All
order allow,deny
allow from all
</Directory>

in <Directory /usr/local/etc/httpd/htdocs/mysubfolder>
Options -Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>


# AND

Alias /mysubfolder/ /usr/local/etc/httpd/mysubfolder/
<Directory /usr/local/etc/httpd/mysubfolder>
Options -Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Given this is a paid service from a host and I cannot remotly restart the server, I presume that they will restart the service every night or so. Still, when I go to:
I get error 404 File not found? What am I doing wrong?

Tnx

Daren J. Lahey
Just another computer guy...
FAQ183-874 contains &quot;Suggestions for Getting Quick and Appropriate Answers&quot; to your questions.
Support your forums TODAY!
 
I don't get it. You can edit apache's configuration files on a hosted server but you can't restart apache. To create a sub-directory, all you have to do is create it within your webspace (under your DocumentRoot). It will have the same permissions and attributes as your websites root directory. The server does NOT have to be restarted for this. The only time you need to edit httpd.conf is if you want a directory outside of your webspace or you want the dir to use different directives or have different permissions.
 
Hi RhythmAce,

I also tried to create the sub-directory from the ftp program. That should have forced the same settings, right? Still no result.
The payed host service gives me the opportunity to change everything, from the pubs to the usr directories. Probably they didn't set it up to propagate the access rules to the sub-directories?? (wild guess)
So, if that would be true, what would have to change in my settings to make that possible?

Thanks again!

Daren J. Lahey
Just another computer guy...
FAQ183-874 contains &quot;Suggestions for Getting Quick and Appropriate Answers&quot; to your questions.
Support your forums TODAY!
 
Once you change the config in the httpd.conf, apache needs to be restarted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top