Re: FYI: making cl-http listen to port 80 on a Mac
Terje Norderhaug <[email protected]> Wed, 8 Apr 2009 22:08:18 -0700
| Newsgroups | gmane.lisp.cl-http |
|---|---|
| Message-ID | <[email protected]> |
On Apr 8, 2009, at 11:29 AM, Mark Klein wrote: > After weeks of looking, I got super-easy instructions on how to make > cl-http on a Mac respond to port 80 (Thanks to Allen Doyle of MIT): > > Edit the Apache config file (httpd.conf) to add the following 2 lines: > > ProxyPass / http://<domain>:8000/ > ProxyPassReverse / http://<domain>:8000/ That will do! Note however that the ProxyPass directive may conflict with use of Apache rewrite rules, which commonly are used in Apache configuration. I recommend using the following in place of the ProxyPass for the equivalent functionality while maintaining compatibility with other/future rewrite rules: RewriteEngine On RewriteRule ^/(.*)$ http://<domain>:8000/$1 [P] This also gives you the ability to do other filtering/rewriting of the URL within Apache without involving CL-HTTP, which might be useful in cases where you want to serve only parts of a website using CL-HTTP. I also enable the preservation of the HTTP Host header (for Apache 2 in OSX 10.5) by adding the following: ProxyPreserveHost On You still need to uncomment the LoadModule and AddModule directives to activate mod_proxy when using Apache 1.x ( OSX 10.3 and 10.4). > To make the system load the configuration, turn off web sharing via > System Preferences and then to turn it on again. > > _______________________________________________ > WWW-CL mailing list > [email protected] > https://lists.csail.mit.edu/mailman/listinfo/www-cl -- Terje Norderhaug _______________________________________________ WWW-CL mailing list [email protected] https://lists.csail.mit.edu/mailman/listinfo/www-cl