![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Linux and Unix Error ! Redhat,suse,centos,mandrake,Free BSD,Sun |
![]() |
|
Accessing outside the document root on Apache/Linux
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 18,702
Join Date: Jan 2006
Rep Power: 10
IM:
|
############ REQUIREMENT: ############ To browse through a web browser to a virtual directory that is located OUTSIDE the web root. ############ WHAT I HAVE: ############ Apache running on Linux. ######################################## HTTPD.CONF ENTRY FOR VIRTUAL DIRECTORY: ######################################## #======================================= #VIRTUAL DIRECTORY CALLED "DROPBOX" accessed by http:// #======================================= Alias /dropbox/ "/dropbox/" Options Indexes AllowOverride None Order allow,deny Allow from all In the above, what Im trying to achieve is the following: http:// I just get a permission denied message. The below entry in my httpd.conf file works fine, and Im wondering if its because it is inside the web root? #======================================= #VIRTUAL DIRECTORY CALLED "VIDEOS" accessed by http:// #======================================= Options Indexes AllowOverride None Order allow,deny Allow from all So in the above, I can browse to http:// ######### QUESTION: ######### Guys is there anything Im missing here? Do I have to create a Virtual Host or something? Is there anyway to go to: http:// when /dropbox IS NOT in the web root? Here are my "root" settings in the httpd.conf file. ServerRoot "/etc/httpd" DocumentRoot "/var/www/html" Any help greatly appreciated. |
|
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|