You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "R. Welz" <r_...@gmx.de> on 2004/02/29 05:58:53 UTC
Server name shortcut in Apache2
Hello.
When I want to work with my repository I have at least to enter the
IP:Port/svn like in http://192.168.1.110:65535/svn/
Is there a way to make a shortcut for the URL like http://subversion
without registering a DNS? I tried Apache's <VirtualHost> directive in
several ways but this didn't work.
I run the Server on Mac OS X (FreeBSD Unix) and have several Linux
clients.
Thank you for help!
Robert Welz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Server name shortcut in Apache2
Posted by "J.P.Jarolim" <ju...@inode.at>.
Please take not to use standard error files in this subdomain.
I expirienced a "major-svn-lock-nogo-why-the-heck-isnt-it-adding-files"
after putting in a 404 Error file in the virtual host.
Svn needs to get a 404 (and mybe the other error-messages) to see if a file
is existant.
just my 5 cents,
Johannes Jarolim
John Peacock <jp...@rowman.com> wrote:
> R. Welz wrote:
>
>> Befor reading the "DNS and BIND 9" Manual can someone tell me if is
>> is possible at all to get a subdomain / shortcut for
>> 192.168.1.11/svn/trunk so that I have left:
>> http://subversion.localhost ?
>>
>
> Not as such. You can map subversion.somedomain (don't use localhost
> as a top level domain) to the IP address 192.168.1.11. Then you
> could create a <virtualhost> entry that contains the appropriate
> configuration:
>
> NameVirtualHost 192.168.1.11
> <VirtualHost 192.168.1.11>
> ServerName subversion.somedomain
> <Location />
> DAV svn
> SVNPath /absolute/path/to/svn/trunk
> </Location>
> </VirtualHost>
>
> something like that (not tested). FWIW, I use .internal as my fake
> TLD. No I cannot tell you the appropriate BIND config lines to
> enable this; I have long since switched to tinydns and have helpfully
> forgotten the baroque BIND file notation.
>
> HTH
>
> John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Server name shortcut in Apache2
Posted by John Peacock <jp...@rowman.com>.
R. Welz wrote:
> Befor reading the "DNS and BIND 9" Manual can someone tell me if is is
> possible at all to get a subdomain / shortcut for
> 192.168.1.11/svn/trunk so that I have left: http://subversion.localhost ?
>
Not as such. You can map subversion.somedomain (don't use localhost as a top
level domain) to the IP address 192.168.1.11. Then you could create a
<virtualhost> entry that contains the appropriate configuration:
NameVirtualHost 192.168.1.11
<VirtualHost 192.168.1.11>
ServerName subversion.somedomain
<Location />
DAV svn
SVNPath /absolute/path/to/svn/trunk
</Location>
</VirtualHost>
something like that (not tested). FWIW, I use .internal as my fake TLD. No I
cannot tell you the appropriate BIND config lines to enable this; I have long
since switched to tinydns and have helpfully forgotten the baroque BIND file
notation.
HTH
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Server name shortcut in Apache2
Posted by "R. Welz" <r_...@gmx.de>.
Excuse me asking, this may sound stupid:
Befor reading the "DNS and BIND 9" Manual can someone tell me if is is
possible at all to get a subdomain / shortcut for
192.168.1.11/svn/trunk so that I have left: http://subversion.localhost
?
Is this tecnically possible with "BIND and DNS" ?
I just want to make shure before I dive in this non-trivial matter.
Thank you for help!
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Server name shortcut in Apache2
Posted by Robert Helmer <ro...@roberthelmer.com>.
Hi,
Individual clients can add the IP and desired hostname to their
"hosts" file ("lmhosts" on Windows).
On Unix you can edit /etc/hosts and add it like this:
192.168.1.110 subversion
However, it's alot easier to just make the change once in DNS
than to manage hosts entries in every single client machine, and
I definitely recommend DNS over hosts file entries.
When you say "registering a DNS", what do you mean? You
don't have to register a whole new domain with e.g. Network
Solutions, we're just talking about subdomains here.
Unless you are using another form of name resolution (unlikely),
then there's not much else to do. The client needs to somehow
be able to (at least) resolve the hostname to an IP address,
and DNS is the most common way of doing this.
HTH,
Rob
On Sun, Feb 29, 2004 at 06:58:53AM +0100, R. Welz wrote:
> Hello.
> When I want to work with my repository I have at least to enter the
> IP:Port/svn like in http://192.168.1.110:65535/svn/
>
> Is there a way to make a shortcut for the URL like http://subversion
> without registering a DNS? I tried Apache's <VirtualHost> directive in
> several ways but this didn't work.
>
> I run the Server on Mac OS X (FreeBSD Unix) and have several Linux
> clients.
>
> Thank you for help!
> Robert Welz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Server name shortcut in Apache2
Posted by Michael McDaniel <su...@autosys.us>.
One "cheap and dirty" way would be to put it in the /etc/hosts file, e.g.
192.168.1.110 subversion subversion.domain
and then make sure the /etc/resolv.conf files have 'order hosts,bind' so
that the hosts file is used before DNS. Depending on how many clients you
have to muss with, this might be less work.
~Michael
On Sun, 29 Feb 2004, R.Welz wrote:
> Date: Sun, 29 Feb 2004 06:58:53 +0100
> From: R.Welz <r_...@gmx.de>
> To: users@subversion.tigris.org
> Subject: Server name shortcut in Apache2
>
> Hello.
> When I want to work with my repository I have at least to enter the
> IP:Port/svn like in http://192.168.1.110:65535/svn/
>
> Is there a way to make a shortcut for the URL like http://subversion
> without registering a DNS? I tried Apache's <VirtualHost> directive in
> several ways but this didn't work.
>
> I run the Server on Mac OS X (FreeBSD Unix) and have several Linux
> clients.
>
> Thank you for help!
> Robert Welz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---
http://autosys.us http://autosys.us/blog/ http://oregonprivacy.org
!DSPAM:40479732198361723516090!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org