VirtualBox WordPress redirects to port 80

前端 未结 2 1620
臣服心动
臣服心动 2021-01-25 22:29

I\'m running on OSX 10.9.2. I just set up LAMP on Lubuntu in VirtualBox so that I could run a development server through VirtualBox. I changed my /etc/apache2/ports.conf

2条回答
  •  野的像风
    2021-01-25 22:44

    I ended up following this guide: http://codex.wordpress.org/Changing_The_Site_URL

    In my wp-config.php, I added the following two lines

    define('WP_HOME', ':8080/wordpresssite');
    define('WP_SITEURL',':8080/wordpresssite');
    

    It's a little hacky, but it works for my own testing purposes. Also, apparently I've been running into an issue where localhost:8080/wordpresssite redirects to localhost/wordpresssite on Chrome. I think that this might be a caching issue, since it doesn't redirect when I'm in incognito.

提交回复
热议问题