2. May, 2003
2. May, 2003
in by Michael Neumann
If you want to let others access your RubLog as /blog and not as /blog/index.cgi, put following directive into your Apache configuration file:
ScriptAlias /blog "/home/mneumann/cm/my_rublog/index.cgi"

When using virtual hosting, make sure the following directive is inside your <VirtualHost>:

AddHandler cgi-script .cgi

Replace /home/mneumann/cm/my_rublog/index.cgi with the path to your RubLog CGI script.

2. May, 2003
2. May, 2003
in by Michael Neumann
Reverse proxying passes HTTP requests arriving at webserver A to another webserver B. The user does not take notice of this step.

Say you want to redirect every path below /proxy on your main webserver to another webserver listening at localhost:8080. All you have to do is to modify your httpd.conf file by adding the following lines:

LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so

<Location /proxy>
        ProxyPass http://localhost:8080
</Location>

Finally restart the main webserver (apachectl restart).