Hi,
I have Ubuntu server running with Apache installed and working. I have a virtual WordPress appliance(Virtualbox) running on the server.
The server ip is 192.168.0.32 and the WordPress server is on 192.168.0.14. To reach the WordPress server I type 192.168.0.14/wordpress - using the hostname (wordpress) doesn't work and I can't ping it on the network (but I can ping 192.168.14).
The Ubuntu server hostname is thaddeus and I want to be able to type http://thaddeus/wordpress and reach the wordpress appliance running at 192.168.0.14/wordpress - I understand Proxypass/ProxypassReverse do this...
Under sites-available I have added the file wordpress:
and enabled the site & restarted Apache. It doesn't work though - the Apache error log says /var/www/wordpress does not exist.Code:#This is for virtual host sites on server2 @ 192.168.0.14 <VirtualHost *:80> ServerAdmin webmaster@domain.com ServerName wordpress # You can have list of space separated aliases if you server2 hosts multiple domains ServerAlias wordpress # If you have multiple hosts (NameVirtualHosts on server 2, you will need to preserve # hostname, or you will always land at the root of # the second server. ie: what ever the default site is. ProxyPreserveHost on # Need to allow location / if you want the proxy to # work when no folder is written in the url. <location /> allow from all </location> # This is where all the magic happens. # You can modify the following for specific folders only and any remote host # you can also specify a different port if you like ProxyPass /wordpress http://192.168.0.14/ ProxyPassReverse /wordpress http://192.168.0.14/ </VirtualHost> ~
Could anyone help please?
thanks
Mark
Bookmarks