[Nitro] Apache question

George Moschovitis george.moschovitis at gmail.com
Thu Nov 8 11:17:32 EST 2007


>
> Has this been solved?


nope, I did this with nitro:

module Raw::Request

  # Implement user mapping:
  # username.me.gr -> me.gr/user/view/username

  def uri
    ruri = @headers["REQUEST_URI"]
    return ruri if host_uri =~ /http:\/\/(www)\./
    if host_uri =~ /http:\/\/(.+)\.me\.gr\/?/ and ruri == "/"
      "/user/view/#$1"
    else
      ruri
    end
  end
end


-g.




-- 
http://me.gr
http://joy.gr
http://cull.gr
http://nitroproject.org
http://phidz.com
http://joyerz.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20071108/a67eaab6/attachment-0001.html 


More information about the Nitro-general mailing list