Vhost directive not work!

Discussion in 'Installation/Configuration' started by adrenalinic, May 31, 2007.

  1. adrenalinic

    adrenalinic Member

    hello.

    i am try to set new vhost directive for my web site.
    this directive is for short url on browser of users of my web site...
    but not works.
    this is the code:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^([a-z0-9]+)$ http://%{http_host}/?L=users.profile&id=$1 [r=301,nc]

    I use php4-cgi under suPHP
    thanks for support.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Do you get any error messages? Any errors in Apache's access log?
     
  3. adrenalinic

    adrenalinic Member

    hello.
    this is my error apache log
    but I mean that error is from suPHP conf.
    all apache conf works ok

    but my cust VHOST do not apply the RewrteRule Expression

    Thank for support.

    [Sat Jun 02 00:04:33 2007] [warn] long lost child came home! (pid 13545)
    [Sat Jun 02 00:05:11 2007] [notice] Graceful restart requested, doing restart
    PHP Warning: Module 'curl' already loaded in Unknown on line 0
    PHP Warning: Module 'gd' already loaded in Unknown on line 0
    PHP Warning: Module 'imap' already loaded in Unknown on line 0
    PHP Warning: Module 'ldap' already loaded in Unknown on line 0
    PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0
    PHP Warning: Module 'mhash' already loaded in Unknown on line 0
    PHP Warning: Module 'mysql' already loaded in Unknown on line 0
    PHP Warning: Module 'pspell' already loaded in Unknown on line 0
    PHP Warning: Module 'snmp' already loaded in Unknown on line 0
    [Sat Jun 02 00:05:12 2007] [notice] Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 PHP/5.2.2-0.dotdeb.0 with Suhosin-Patch mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
    [Sat Jun 02 00:05:12 2007] [warn] long lost child came home! (pid 18386)
     
  4. falko

    falko Super Moderator Howtoforge Staff

    There are no mod_rewrite related errors in the log, so mod_rewrite seems to be working, but I guess your rewrite rule is wrong/doning something different than you expect.
     

Share This Page