[Setup] Virtual hosting setup
Holden Hao
holdenhao at gmail.com
Thu May 7 07:09:30 UTC 2009
>
> Hi,
>
> Thank you for your prompt reply.
> I managed to configure the nameserver to point to the subdomain i wanted.
> Now I have it set like this: http://subdomain.xxx.com:8080/plonesite and i
> want iot to look like http://subdomain.xxx.com.
> I followed the directions from the article in the link you mentioned, but
> it
> did not do it. :(
>
1. You need to enable NameVirtualHost in your httpd.conf
2. Then add a file FileName.conf to /directory etc/httpd/conf.d Look at
each line and change appropriately to your settings.
<VirtualHost *:80>
ServerName subdomain.xxx.com
ServerAlias www.subdomain.xxx.com
ServerAdmin your at emailaddress.com
ServerSignature On
CustomLog /var/log/httpd/mysubdomain-access.log combined
ErrorLog /var/log/httpd/mysubdomain-error.log
LogLevel warn
<IfModule mod_rewrite.c>
RewriteEngine On
# serving icons from apache 2 server
RewriteRule ^/icons/ - [L]
RewriteRule ^/(.*) \
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/myPloneSite/VirtualHostRoot/$1[L,P]
</IfModule>
</VirtualHost>
Good luck.
Holden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.plone.org/pipermail/setup/attachments/20090507/ada1dc65/attachment.htm
More information about the Setup
mailing list