简体   繁体   中英

Apache proxy module issue

I want to redirect a url to an application on same apache server.My development environment is Ubuntu 12.04 LTS.I enables the mod_proxy.But my url isn't redirecting to the desired application.Following is the code i put inside the /etc/apache2/sites-available/default file.I put this bottom of the file but before the "VirtualHost" tag.

ProxyRequests On
ProxyVia On
<Proxy *>
  Order deny,allow
  Deny from all
  Allow from localhost
</Proxy>
ProxyPass /application_directory/ http://localhost/application/directory
ProxyPassReverse /application_directory/ http://localhost/application/directory

Hope a trailing "/" might help

ProxyPass /application_directory/ http://localhost/application/directory/
ProxyPassReverse /application_directory/ http://localhost/application/directory/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM