How to set multisites: same domain, different path, one ip address
--0016e64beb343c27b5047d481c00
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
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)
---
Best regards=A3=A1
Thanks
Jiongliang Zhang
--0016e64beb343c27b5047d481c00
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable
I have implement something like this:<br><br><virtualhost :80><br>&nb=
sp; mailman is here, <br></virtualhost><br><br><virtua=
lhost :8080><br> redmine is here.<br></virtualhost&=
gt;<br><br>so when I using mydomain:80 and mydomain:8080, I can request bot=
h of them.<br>
But now I have new reqirements, I hope using mydomain/mailman and mydomain/=
redmine<br>to identify them, just like:<br>
<br>
<a href=3D"http://mydomain/mailman">http://mydomain/mail=
man</a><br>
<a href=3D"http://mydomain/redmine">http://mydomain/redm=
ine</a><br>
<br>
on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain<br>
<br>
mailman path: /var/lib/mailman/*<br>
redmine path: /var/lib/redmine/*<br>
<br>
How can I do this. (I'm newbee on apache)<br><br>---<br>Best regards=A3=
=A1<br>Thanks<br>Jiongliang Zhang<br>
--0016e64beb343c27b5047d481c00--
Re: How to set multisites: same domain, different path,
2010/1/16 Jiongliang Zhang <zhnzhong521 [at] gmail.com>:
> 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)
>
> ---
> Best regards=A3=A1
> Thanks
> Jiongliang Zhang
>
Use an alias:
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
Frank
------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: How to set multisites: same domain, different path,
--0016e648f67ee672c8047d48faac
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
2010/1/16 Francois Gingras <francois.gingras [at] gmail.com>
> 2010/1/16 Jiongliang Zhang <zhnzhong521 [at] gmail.com>:
> > 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=A3=A1
Thanks
Jiongliang Zhang
--0016e648f67ee672c8047d48faac
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable
<br><br><div class=3D"gmail_quote">2010/1/16 Francois Gingras <span dir=3D"=
ltr"><<a href=3D"mailto:francois.gingras [at] gmail.com">francois.gingras [at] gma=
il.com</a>></span><br><blockquote class=3D"gmail_quote" style=3D"border-=
left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left=
: 1ex;">
2010/1/16 Jiongliang Zhang <<a href=3D"mailto:zhnzhong521 [at] gmail.com">zhn=
zhong521 [at] gmail.com</a>>:<br>
<div><div></div><div class=3D"h5">> I have implement something like this=
:<br>
><br>
> <virtualhost :80><br>
> mailman is here,<br>
> </virtualhost><br>
><br>
> <virtualhost :8080><br>
> redmine is here.<br>
> </virtualhost><br>
><br>
> so when I using mydomain:80 and mydomain:8080, I can request both of t=
hem.<br>
> But now I have new reqirements, I hope using mydomain/mailman and<br>
> mydomain/redmine<br>
> to identify them, just like:<br>
><br>
> <a href=3D"http://mydomain/mailman" target=3D"_blank">ht=
tp://mydomain/mailman</a><br>
> <a href=3D"http://mydomain/redmine" target=3D"_blank">ht=
tp://mydomain/redmine</a><br>
><br>
> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain<=
br>
><br>
> mailman path: /var/lib/mailman/*<br>
> redmine path: /var/lib/redmine/*<br>
><br>
> How can I do this. (I'm newbee on apache)<br>
<br></div></div></blockquote><div><br> </div><blockquote class=3D"gmai=
l_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0p=
t 0pt 0.8ex; padding-left: 1ex;"><div><div class=3D"h5">
</div></div>Use an alias:<br>
<br>
<a href=3D"http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias" targe=
t=3D"_blank">http://httpd.apache.org/docs/2.2/mod/mod_alias. html#alias</a><=
br>
<br>
Frank<br></blockquote><div><br>I tried the alias, but it doesn't work. =
Is Alias just for filesystem? But this requirement <br>should be set to map=
ping web site, a web site may be started in a virtualhost tag, so, the<br>
alias cannot map to http://.... or servername value? any ideas?<br clear=3D=
"all"></div></div><br>-- <br>Best regards=A3=A1<br>Thanks<br>Jiongliang Zha=
ng<br>
--0016e648f67ee672c8047d48faac--
Re: How to set multisites: same domain, different path,
2010/1/16 Jiongliang Zhang <zhnzhong521 [at] gmail.com>:
> 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:
>
> =A0=A0=A0 http://mydomain/mailman
> =A0=A0=A0 http://mydomain/redmine
>
> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain
>
> mailman path:=A0 /var/lib/mailman/*
> redmine path: /var/lib/redmine/*
>
> How can I do this. (I'm newbee on apache)
What you need to know first is that:
http://mydomain/mailman
http://mydomain/redmine
Are just two paths on one server instance. So forget about
virtualhosts, you don't need them. Just get your http://mydomain
server working first.
Then once that works you can add aliase to your config. So it would
look like this:
Alias /mailman /var/lib/mailman
Alias /redmine /var/lib/redmine
Krist
--
krist.vanbesien [at] gmail.com
krist [at] vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?
------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: How to set multisites: same domain, different path,
--0016e687869461d709047d79ebfa
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
2010/1/18 Krist van Besien <krist.vanbesien [at] gmail.com>
> 2010/1/16 Jiongliang Zhang <zhnzhong521 [at] gmail.com>:
>
> > 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)
>
> What you need to know first is that:
>
> http://mydomain/mailman
> http://mydomain/redmine
>
> Are just two paths on one server instance. So forget about
> virtualhosts, you don't need them. Just get your http://mydomain
> server working first.
>
> Then once that works you can add aliase to your config. So it would
> look like this:
>
>
> Alias /mailman /var/lib/mailman
> Alias /redmine /var/lib/redmine
>
Many thanks first.
It works for me at first link, but after I enter into the web site, just
like http://mydomain/redmine, all links cann't change to
http://mydomain/redmine/* as their header, for example:
Redmine website has path : /login, and the normal way (no Alias), the web
space is: http://mydomain/login, when I use
Alias directive, the homepage, can use http://mydomain/redmine to access,
but the /login, cann't change to
http://mydomain/redmine/login, it's still http://mydomain/login. Can I
change its links by Apache?
PS: Redmine (http://www.redmine.org), is deployed: Ubuntu8.04 server +
Apache2.2 Proxy + Mongrel Cluster.
--
Best regards=A3=A1
Thanks
Jiongliang Zhang
--0016e687869461d709047d79ebfa
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable
<br><br><div class=3D"gmail_quote">2010/1/18 Krist van Besien <span dir=3D"=
ltr"><<a href=3D"mailto:krist.vanbesien [at] gmail.com">krist.vanbesien [at] gmail=
..com</a>></span><br><blockquote class=3D"gmail_quote" style=3D"border-le=
ft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: =
1ex;">
<div class=3D"im">2010/1/16 Jiongliang Zhang <<a href=3D"mailto:zhnzhong=
521 [at] gmail.com">zhnzhong521 [at] gmail.com</a>>:<br>
<br>
</div><div class=3D"im">> so when I using mydomain:80 and mydomain:8080,=
I can request both of them.<br>
> But now I have new reqirements, I hope using mydomain/mailman and<br>
> mydomain/redmine<br>
> to identify them, just like:<br>
><br>
> <a href=3D"http://mydomain/mailman" target=3D"_blan=
k">http://mydomain/mailman</a><br>
> <a href=3D"http://mydomain/redmine" target=3D"_blan=
k">http://mydomain/redmine</a><br>
><br>
> on ubuntu server 8.04, apache2.2, ip: 192.168.1.128, domain: mydomain<=
br>
><br>
> mailman path: /var/lib/mailman/*<br>
> redmine path: /var/lib/redmine/*<br>
><br>
> How can I do this. (I'm newbee on apache)<br>
<br>
</div>What you need to know first is that:<br>
<div class=3D"im"><br>
<a href=3D"http://mydomain/mailman" target=3D"_blank">http://mydomain/mailm=
an</a><br>
<a href=3D"http://mydomain/redmine" target=3D"_blank">http://mydomain/redmi=
ne</a><br>
<br>
</div>Are just two paths on one server instance. So forget about<br>
virtualhosts, you don't need them. Just get your <a href=3D"http://mydo=
main" target=3D"_blank">http://mydomain</a><br>
server working first.<br>
<br>
Then once that works you can add aliase to your config. So it would<br>
look like this:<br>
<br>
<br>
Alias /mailman /var/lib/mailman<br>
Alias /redmine /var/lib/redmine<br></blockquote><div><br>Many thanks first.=
<br><br>It works for me at first link, but after I enter into the web site,=
just like <a href=3D"http://mydomain/redmine">http://mydomain/redmine</a>,=
all links cann't change to <br>
<a href=3D"http://mydomain/redmine/*">http://mydomain/redmine/*</a> as thei=
r header, for example:<br><br>Redmine website has path : /login, and the no=
rmal way (no Alias), the web space is: <a href=3D"http://mydomain/login">ht=
tp://mydomain/login</a>, when I use<br>
Alias directive, the homepage, can use <a href=3D"http://mydomain/redmine">=
http://mydomain/redmine</a> to access, but the /login, cann't change to=
<br><a href=3D"http://mydomain/redmine/login">http://mydomain/redmine/logi=
n</a>, it's still <a href=3D"http://mydomain/login">http://mydomain/log=
in</a>. Can I change its links by Apache?<br>
<br>PS: Redmine (<a href=3D"http://www.redmine.org">http://www.redmine.org<=
/a>), is deployed: Ubuntu8.04 server + Apache2.2 Proxy + Mongrel Cluster.<b=
r></div></div><br>-- <br>Best regards=A3=A1<br>Thanks<br>Jiongliang Zhang<b=
r>
--0016e687869461d709047d79ebfa--