Can I serve content out of a directory other than the documentroot directory?



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

Post New Answer

More Apache Interview Questions

How to configure apache server in linux?

1 Answers  


What is use of nonroot user in httpd.conf file on apache?

1 Answers  


On a fresh install, why does Apache have three config files - srm.conf, access.conf and httpd.conf?

3 Answers  


What’s a distinction between apache and nginx net server?

1 Answers  


What is htpasswd?

1 Answers  


What type of ip is needed for apache web servers to host a website?

1 Answers  


Which tool you have used for apache benchmarking?

1 Answers  


How to get support for apache web server if something wrong?

1 Answers  


How do I start apache server on windows?

1 Answers  


What is apache child process?

1 Answers  


How do I stop httpd server?

1 Answers  


How do you set up a virtual host in Apache?

2 Answers  


Categories