Looking to redirect path /blog to another server using Apache -


i want host blog on it's own server, have url @ mysite.com/blog

should using mod_proxy or apache redirect, , how set on apache?

my first pass attempt looks in vhost file, failed:

<virtualhost *:80>     proxypreservehost on     proxypass /blog http://blog.server's.ip.address/     proxypassreverse /blog http://blog.server's.ip.address/     serveradmin me@myemail.com     servername mysite.com     documentroot /var/www      <directory /var/www>              order allow,deny             allow     </directory>      errorlog ${apache_log_dir}/error.log     customlog ${apache_log_dir}/access.log combined </virtualhost> 

with place following error when restarting apache:

  • restarting web server apache2 /sbin/start-stop-daemon: warning: failed kill 11306: operation not permitted [fail]
  • the apache2 configtest failed, trying kill manually. suboptimal, please make sure system working you'd expect now!

mod_proxy needs enabled before working >_<

once enabled config worked expected.

a2enmod proxy_http 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -