Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

#Listen 12.34.56.78:80
#Listen 127.0.0.1:8887
Listen 127.0.0.1:80
#Listen 127.0.0.1:8080
Listen 192.168.1.4:80

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?

share|improve this question
1  
Redirect can be cached in browser and is tricky to get rid of... can you test it on different browser/workstation? –  Kamil Šrot Nov 1 '12 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 '12 at 10:03
    
@KamilŠrot I've tried all my browsers and their respective incognito modes. –  laggingreflex Nov 1 '12 at 10:21
    
@Ladadadada Those are the only rules on my .htaccess in www root folder. What other confs do you mean? –  laggingreflex Nov 1 '12 at 10:23
1  
[SOLVED] So this was causing it: ServerName 127.0.0.1:8080 (line224 my httpd.conf) –  laggingreflex Nov 3 '12 at 7:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.