mod_rewrite interferring with UserDir

This is a discussion on mod_rewrite interferring with UserDir within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, Im setting up a hosting environment to be used with a new CMS were building. The server is running ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008
Vertigo
 
Posts: n/a
Default mod_rewrite interferring with UserDir

Hi,

Im setting up a hosting environment to be used with a new CMS were
building. The server is running DirectAdmin, and Ive setup a few test
users so far to gauge the servers readiness. All seems to be ok - the
sites can be accessed through domains, and also via IP/~user, except
for the test CMS site.

Heres the .htaccess:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.php [QSA,L]

Accessed via domain, works perfectly. Accessing via IP/~user (which we
will need for site setup before transferring domains) returns the
following:

"Not Found

The requested URL /dispatch.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request."

Apache errorlog:
[Fri Feb 29 15:35:55 2008] [error] [client #.#.#.#] script '/var/www/
html/dispatch.php' not found or unable to stat
[Fri Feb 29 15:35:55 2008] [error] [client #.#.#.#] File does not
exist: /var/www/html/404.shtml

Why would it be looking in /var/www/html, and not /home/user/
public_html? Again, this only happens when using the IP/~user access
method, directly to domain name works fine.

Any ideas?
 


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:13 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0