Can I serve content out of a directory other than the documentroot directory?
Answer / Jagpreet Singh
Yes, you can use Apache's mod_alias module to create an alias for a directory outside the DocumentRoot. Here's an example configuration: {"Alias /media /var/www/html/media", "<Directory /var/www/html/media>" AllowOverride All, Order allow,allow from all ""}
| Is This Answer Correct ? | 0 Yes | 0 No |
How to configure apache server in linux?
What is use of nonroot user in httpd.conf file on apache?
On a fresh install, why does Apache have three config files - srm.conf, access.conf and httpd.conf?
What’s a distinction between apache and nginx net server?
What is htpasswd?
What type of ip is needed for apache web servers to host a website?
Which tool you have used for apache benchmarking?
How to get support for apache web server if something wrong?
How do I start apache server on windows?
What is apache child process?
How do I stop httpd server?
How do you set up a virtual host in Apache?