RE: [users@httpd] Redirection on apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ronaldy, Franky" <franky.ronaldy@xxxxxx> wrote on 24/03/2005 10.01.30:

> 
> httpd.conf
> ----------
> Include conf/mod_jk.conf
> 
> Listen 3000
> 
> <VirtualHost *:3000>
>   ServerName www.servername.com
>   JkMount /* ajp13
> </VirtualHost>
> 
> I should browse http://www.servername.com:8081/abc in order to 
> access abc context path. And it works now.
> 
> From above config in order to access http://www.servername.com:8081/abc
> from apache I should access through http://www.servername.com:3000/abc .
> 
> I want to access URL http://www.servername.com:8081/abc only by typing 
> http://www.servername.com:3000 in the browser. Is it still possible 
> by using mod_jk? How to make it works? Thanks.
> 

I don't know for mod_jk but what not doing it with apache, in httpd conf, 
using rewritten rules?

<VirtualHost *:3000>

    ServerName www.servername.com

    RewriteEngine on
    RewriteLog /var/log/httpd/rewrite-zope-it.log
    RewriteLogLevel 2
    RewriteRule ^/(.*)  /abc/  [R]
 
    JkMount /* ajp13

</VirtualHost>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux