简体   繁体   中英

Apache Redirection two apps wordpress and tomcat

I want to configure Wordpress site ( http://example.com/blog ) served from Apache. Webapp using Tomcat on same server listens on port 8080. These need to be redirect from 80 to 8080.

I tried reverse proxy method but was not successful.

Look at the wordpress configuration:

See table wp_options , there are two options:

1. siteurl

value: http://yourhost:port/

2. home

value: http://yourhost:port/dirname/


When you install the wordpress, the two paths above was set to the database, so if you change the port, it won't change it self, you should change it manually. Or it will always trigger a redirection there.

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