Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Document Root |
|
Author |
|
damianco
Joined: 04 Oct 2007 Posts: 2 Location: Ireland
|
Posted: Thu 04 Oct '07 17:05 Post subject: Document Root |
|
|
Hi There
I need to create another location where i can call flash files but it cannot reside in the document root. Do i need to create an alias or something similar for this to work?
Any help would be greatly appreciated and i am new to apache and have found this site to be a great asset to my steep learning curve.
d. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7298 Location: Germany, Next to Hamburg
|
Posted: Mon 08 Oct '07 19:50 Post subject: |
|
|
Yes you can create an alias. A great alias example you can find inside your httpd.conf for the icons folder.
if you still have a question please ask again. |
|
Back to top |
|
Bruce
Joined: 28 Nov 2006 Posts: 77 Location: Mars
|
Posted: Fri 12 Oct '07 16:09 Post subject: |
|
|
Hello damianco this is my directory config for an example.first in your windows registry use multi string named directory and put all your directory
paths.her is my http.config for example
Code: | <Directory "c:/server/htdocs/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None FileInfo Options
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Directory "E:/server/htdocs/Edrive/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None FileInfo Options
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Alias
| #
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
Alias /music "E:/server/htdocs/Edrive/music"
Alias /support_center "E:/server/htdocs/Edrive/support_center"
Alias /forums "E:/server/htdocs/Edrive/forums"
Alias /sales_advertising "E:/server/htdocs/Edrive/sales_advertising"
it works very well try it you like it |
|
Back to top |
|
|
|
|
|
|