Re: How to set multisites: same domain, different path, one ip address

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

 





2010/1/16 Francois Gingras <francois.gingras@xxxxxxxxx>
2010/1/16 Jiongliang Zhang <zhnzhong521@xxxxxxxxx>:
> I have implement something like this:
>
> <virtualhost :80>
>     mailman is here,
> </virtualhost>
>
> <virtualhost :8080>
>     redmine is here.
> </virtualhost>
>
> so when I using mydomain:80 and mydomain:8080, I can request both of them.
> But now I have new reqirements, I hope using mydomain/mailman and
> mydomain/redmine
> to identify them, just like:
>
>     http://mydomain/mailman
>     http://mydomain/redmine
>
> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain
>
> mailman path:  /var/lib/mailman/*
> redmine path: /var/lib/redmine/*
>
> How can I do this. (I'm newbee on apache)


 
Use an alias:

http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

Frank

I tried the alias, but it doesn't work. Is Alias just for filesystem? But this requirement
should be set to mapping web site, a web site may be started in a virtualhost tag, so, the
alias cannot map to http://.... or servername value? any ideas?

--
Best regards!
Thanks
Jiongliang Zhang

[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