Forum Moderators: phranque

Message Too Old, No Replies

UserDir is disabled yet server still responds differently to /~root

~root userdir disable

         

steveeb

1:43 pm on Jul 29, 2014 (gmt 0)

10+ Year Member



My httpd.config

UserDir disabled

and

#UserDir public_html

And also commented out

#LoadModule userdir_module modules/mod_userdir.so

but when I browse my website, if I put /~root I get a message in Firefox:

The connection was reset. (code 504)

If I browse /~foo it goes to page not found (code 404)

It should not treat ~root any different than any other link that does not exist. I am using Magento so for any other link that does not exist Magento displays:

Oops page not found

but for ~root it seems like it is bypassing Magento and providing a different error.

I tried to Use a RedirectMatch rewrite rule under Apache e.g.: RedirectMatch ^/~(.*)$ http://example.com

And

3) Add into httpd.conf:
ErrorDocument 404 [servername.com...]
ErrorDocument 403 [servername.com...]

[edited by: phranque at 4:00 pm (utc) on Jul 29, 2014]
[edit reason] exemplified domain [/edit]

phranque

10:25 am on Aug 23, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, steveeb!


when I browse my website, if I put /~root I get a message in Firefox:

The connection was reset. (code 504)

If I browse /~foo it goes to page not found (code 404)

have you checked the server error log for clues?

ergophobe

4:53 pm on Aug 28, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sometimes I see connection reset errors when doing something that violates a server security policy (usually the sort of thing that would be used in a DDOS). It could be that there is a prior rule for blocking that URL from hackers that takes precedence over any UserDir settings.

If you enbable UserDir, I'm betting that the /~root address still gives you a 504.