Forum OpenACS Q&A: some problem in virtual hosting on RH7

Dear all,
      I am a freshman of using AOLserver and Openacs.Since the
business requirement, I need to set up a virtual hosting platform by
RedHat Linux 7.2. My setting is OpenACS 3.5 , AOLserver 3.3+ad13,
postgres 7.1.3 run in unicode. Also, I have alreadys downloaded and
patch from Jerry's the latest version of aolserver3.3-vhr.patch.
    But after patch up, it's still so slow to see the web pages. The
speed is about 10-20 s to download a little plain text LOCALLY. The
more serious when loading dynamic pages from remote. Could anybody
mind answering me that how to solve this ? Thank you very much.
Collapse
Posted by Jonathan Ellis on
how much memory does your machine have?
Collapse
Posted by Ken Mayer on
I struggled with the vhr stuff a long time ago, and finally gave up. Apache does a better job of that than AOLserver, so I let Apache do that (listen on port 80) and run a vanilla nsd on a localhost interface (127.0.0.1:8000). Here's a sample from my config:
Listen 80
NameVirtualHost 172.16.178.1:80

# Default, if the browser doesn't supprt named hosts
<VirtualHost _default_:80>
DocumentRoot /home/proxy/www
RewriteEngine on
RewriteRule ^.* /
</VirtualHost>

<VirtualHost 172.16.178.1>
ServerAdmin webmaster@bitwrangler.com
DocumentRoot /web/bw-dev
ServerAlias bw-dev.bitwrangler.com
ServerPath /bw-dev
RewriteEngine on
RewriteRule ^/bw-dev/(.*) http://127.0.0.1:8000/$1 [proxy]
RewriteRule ^/bw-dev      http://127.0.0.1:8000/   [proxy]
ProxyPass        / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>
Collapse
Posted by Jon Griffin on
Apache doesn't let you do https does it?

Also, your log files are useless.