Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory /home/test/public_beta>
AllowOverride All
DocumentRoot /home/test/public_beta

ProxyPass /
ProxyPassReverse /

What does above mean? Will it redirect request to port 8044 to / or /var/www/html ? whats does Directory and DocumentRoot mean here?

share|improve this question
up vote 0 down vote accepted

The <Directory> directive is used to assign special commands just for that hard-drive location, in this case, it tells apache what to do when it encounters an .htaccess file in that directory. The DocumentRoot tells apache where the 'home page' web files would be, if it weren't for the ProxyPass directive, which tells apache to redirect EVERYTHING to on port 8044.

I bet if you commented them out it would work exactly the same.

There is a complete guide to all the directives online:

Basically, every request (including redirects) will be proxied to

For instance, https://localhost:444/something/page.html should respond from

share|improve this answer
thanks Grizly,for detailed explanation. I have issue,localhost:444/something works when i tried it from localmachine. But when I try this from different machine (say from virtual machine) i did something like ipaddress:444/something -- its not working. Will it work? – lakshmipathi Sep 8 '10 at 9:58
No, your <VirtualHost> explicitly only refers to the localhost. You should change that to your actual IP address for remote machines to connect to it. – Grizly Sep 8 '10 at 10:41
thanks Grizly... – lakshmipathi Sep 8 '10 at 10:46

this will redirect Request to to This snippets doesn't tell whether the directory behind is / or /var/www/html. The DocumentRoot and Directory Settings is not really necessary because of the ProxyPass directive.

you can find even more details in the documentation:

share|improve this answer
thanks.How to find "This snippets doesn't tell whether the directory behind is / or /var/www/html. " ? should i look into /etc/httpd/conf/httpd.conf file? – lakshmipathi Sep 8 '10 at 9:56
It might be this file. You have to search for the configuration of the virtual host with Port 8044. – Christian Sep 8 '10 at 10:25
thanks Christian,both you answered my questions.thanks a lot. – lakshmipathi Sep 8 '10 at 10:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.