LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-03-2011, 09:43 PM   #1
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Rep: Reputation: 18
issue with apache not resolving a folder


Hi folks
i'm on the edge of desperation... so here i go

This server has a wordpress install on it... and the apache webserver is not resolving the wp-admin

when i go to the access log... this is what i find
Code:
- - [03/Oct/2011:18:10:45 -0500] "GET /main/wp-admin/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"


what do you guys recommend me to check for?
 
Old 10-03-2011, 10:43 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
A 302 response is a permanent redirect from memory, check your rewrites.
 
Old 10-05-2011, 09:24 AM   #3
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Original Poster
Rep: Reputation: 18
I've check the rewrites and everything looks ok... dunno what is going on.
I have also disable the allow override on httpd.conf with no results.

Reloaded wordpress
updated apache
updated php

nothing.
 
Old 10-05-2011, 05:01 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
What happens when you attempt to access the page through a browser? ... do you see where it's redirecting to?
 
Old 10-05-2011, 05:54 PM   #5
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Original Poster
Rep: Reputation: 18
it just give me a "problem loading page" error

link: www.fastmedic.com/main/wp-admin/
 
Old 10-05-2011, 11:24 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Looking at it with "tamper data" the redirect seems to be for authentication:

Code:
URL=http://www.fastmedic.com/main/wp-login.php?redirect_to=http%3A%2F%2Fwww.fastmedic.com%2Fmain%2Fwp-admin%2F&reauth=1
.. maybe there's something wrong with the authentication process or configuration?
 
Old 10-06-2011, 08:59 AM   #7
d3vrandom
Member
 
Registered: Jun 2006
Location: Karachi, Pakistan
Distribution: OpenSUSE, CentOS, Debian
Posts: 59

Rep: Reputation: 9
nvm. see below:

Last edited by d3vrandom; 10-06-2011 at 09:09 AM.
 
Old 10-06-2011, 09:09 AM   #8
d3vrandom
Member
 
Registered: Jun 2006
Location: Karachi, Pakistan
Distribution: OpenSUSE, CentOS, Debian
Posts: 59

Rep: Reputation: 9
Actually I figured out what the problem is. I think its related to mod_security an apache module. to confirm whether you have that installed I would do a :

Code:
httpd -M
As root ( assuming centos). The problem only occurs if you include "redirect_to=http://" in the query string. The http part is what's triggering the problem. So you have to whitelist this for your site. A post that I found that talks about this is:

http://www.pablumfication.co.uk/2010...-mod_security/

If you don't have root access to your server you may have to talk with your hosting provider about fixing this for you.

Last edited by d3vrandom; 10-06-2011 at 09:11 AM.
 
Old 10-06-2011, 08:47 PM   #9
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Original Poster
Rep: Reputation: 18
well
apparently i don't have mod_security installed.

Code:
[root@web ~]# httpd -M
Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_file_module (shared)
 authn_alias_module (shared)
 authn_anon_module (shared)
 authn_dbm_module (shared)
 authn_default_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 authz_owner_module (shared)
 authz_groupfile_module (shared)
 authz_dbm_module (shared)
 authz_default_module (shared)
 ldap_module (shared)
 authnz_ldap_module (shared)
 include_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 ext_filter_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 deflate_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 setenvif_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 info_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 proxy_module (shared)
 proxy_balancer_module (shared)
 proxy_ftp_module (shared)
 proxy_http_module (shared)
 proxy_connect_module (shared)
 cache_module (shared)
 suexec_module (shared)
 disk_cache_module (shared)
 file_cache_module (shared)
 mem_cache_module (shared)
 cgi_module (shared)
 version_module (shared)
 php5_module (shared)
 proxy_ajp_module (shared)
Syntax OK
 
Old 10-13-2011, 06:50 PM   #10
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Original Poster
Rep: Reputation: 18
anybody?

I really don't want to reinstall the OS on this thing...
 
Old 11-29-2011, 08:46 PM   #11
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Original Poster
Rep: Reputation: 18
bump up
I haven't resolved this issue yet...

From access.log
Code:
190.XXX.XXX.X - - [29/Nov/2011:18:15:27 -0500] "GET /main/wp-admin HTTP/1.1" 301 329 "-" "Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
190.XXX.XXX.X - - [29/Nov/2011:18:15:27 -0500] "GET /main/wp-admin/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
^[^[^[- [29/Nov/2011:18:15:27 -0500] "GET /main/wp-admin HTTP/1.1" 301 329 "-" "Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
190.XXX.XXX.X - - [29/Nov/2011:18:15:27 -0500] "GET /main/wp-admin/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1"
 
Old 11-30-2011, 03:37 PM   #12
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Why would you reinstall the OS when you haven't done any troubleshooting and it's clearly an application issue ? ... like I suggested earlier, have you looked at the authentication mechanism ? .. can you list the plugins under /wp-content/plugins/ ?
 
Old 12-01-2011, 08:19 AM   #13
kernel-P4N1C
Member
 
Registered: Nov 2007
Location: Panama city, Republic of Panmaa
Posts: 167

Original Poster
Rep: Reputation: 18
I have installed a fresh wordpress 3.2.1 copy and it is having the same behavior...
connection get lost at certain point and access log pops error 302.

on another box that is running fine i have that 302 access log as the first step before another bunch... which got me thinking

I updated php, apache and mysql using remi repos and reconfigured apache from scratch (this box is running one website on it's default document root) with no diferent behavior. Honestly i have no idea what to do.
 
Old 12-02-2011, 05:22 AM   #14
d3vrandom
Member
 
Registered: Jun 2006
Location: Karachi, Pakistan
Distribution: OpenSUSE, CentOS, Debian
Posts: 59

Rep: Reputation: 9
Ask your hosting provider whether they have a load balancer or reverse proxy sitting in front of your webserver.
 
Old 12-02-2011, 06:47 AM   #15
agentbuzz
Member
 
Registered: Oct 2010
Location: Texas
Distribution: Debian, Ubuntu, CentOS, RHEL
Posts: 131

Rep: Reputation: 25
Wordpress redirects, forcing SSL logins, etc.

Here is an article on Wordpress that may solve your problem.

http://codex.wordpress.org/Administration_Over_SSL
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Issue resolving address using smbfs in FSTAB mount bcyork Linux - Networking 2 08-15-2011 06:53 PM
Issue resolving names from DNS server dman65 Linux - Networking 8 06-10-2011 07:05 AM
[SOLVED] DNS server issue resolving localdomain hosts hazza96 Linux - Server 5 12-15-2009 02:54 PM
resolving dependencies update loop issue james2b Fedora 5 12-14-2008 03:29 AM
Apache is resolving names to ip? danimaldaisy Linux - Networking 3 12-18-2002 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration