Here's my httpd.conf. Inside it, I have the following in place


and I have a .htaccess

RewriteEngine On
RewriteRule ^wordpress(.*)$ wp-oct/live$1

in my local www folder with wordpress installed in /wp-oct/live/ to which /wordpress/ is supposed to redirect to, but it doesn't. It instead redirects to http://localhost:8080/wp-oct/live/. Why is 8080 showing up?

  • 1
    Redirect can be cached in browser and is tricky to get rid of... can you test it on different browser/workstation? Nov 1, 2012 at 9:58
  • 2
    A redirect to port 8080 is no indication that Apache is listening on port 8080. That RewriteRule should not cause a redirect. There must be more to your configuration and I think you'll need to paste some of it here to get a useful answer. All of your rewrite rules would be a good start.
    – Ladadadada
    Nov 1, 2012 at 10:03
  • @KamilŠrot I've tried all my browsers and their respective incognito modes. Nov 1, 2012 at 10:21
  • @Ladadadada Those are the only rules on my .htaccess in www root folder. What other confs do you mean? Nov 1, 2012 at 10:23
  • 1
    [SOLVED] So this was causing it: ServerName (line224 my httpd.conf) Nov 3, 2012 at 7:41

1 Answer 1


I see you've already solved it, but for anyone who comes across this post, one way to troubleshoot this is to mod_info to pull up the server info page (see http://httpd.apache.org/docs/2.2/mod/mod_info.html) and then search for 8080 to see where 8080 might be getting defined.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.