Re: Restrict access to folders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So I tried solution 3...

> 3) Place your PersonalSite and ProfesionalSite directories outside
> of the webserver root directory, and use Alias directives to point 
> /PersonalSite and /ProfessionalSite to them. That way even if you 
> can list the root level directory, neither site will show up

...by doing this:

- httpd.conf already had
Alias /icons/ "/var/www/icons/"  so I added
Alias /site1/ "var/www/html1/site1"

- I created /var/www/html1/site1/index.html

when I navigate to mydomain.name/site1 or /site1/ I get 404. I also tried aliasing /site1/ to /site1/site1.html with no luck. Do I have to do something with the DirectoryIndex line?

Thanks,Bruce

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux