Networking Forums

Networking Forums > Computer Networking > Linux Networking > netconfig the right way

Reply
Thread Tools Display Modes

netconfig the right way

 
 
Miguel De Anda
Guest
Posts: n/a

 
      11-18-2003, 12:10 AM
I'm running slackware 9.1 and when I run netconfig I use the following
settings...

hostname: tiny
domain: computerlab
(just something i made up, all my machines use the same domain)

ip address: DHCP
dhcp hostname: <empty>



I'm running apache as a simple way to help with file sharing but also
to test out html pages and stuff like that. I've uncommented out the
bit of code that allows access to a user's public_html directory.

My questions:

a) how can I make it so I can do something like http://tiny/ or
http://tiny.computerlab/ or something similar? I also want to be able
to use then for when I ftp/telnet to that machine.

b) when I do ip/~username I get redirected to
tiny.computerlab/~testuser/ (changes ip to tiny.computerlab and add
the trailing /) but that can't be found. Is there a way to fix this?
 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      11-19-2003, 12:45 AM
On 17 Nov 2003 17:10:52 -0800, Miguel De Anda <(E-Mail Removed)> wrote:
> I'm running slackware 9.1 and when I run netconfig I use the following
> settings...
>
> hostname: tiny
> domain: computerlab
> (just something i made up, all my machines use the same domain)
>
> ip address: DHCP
> dhcp hostname: <empty>
>
>
>
> I'm running apache as a simple way to help with file sharing but also
> to test out html pages and stuff like that. I've uncommented out the
> bit of code that allows access to a user's public_html directory.
>
> My questions:
>
> a) how can I make it so I can do something like http://tiny/ or
> http://tiny.computerlab/ or something similar? I also want to be able
> to use then for when I ftp/telnet to that machine.


The client needs to be able to find such a name using either DNS, or their
hosts file. Even Windows can have a hosts file (hosts.sam is just an
example).

> b) when I do ip/~username I get redirected to
> tiny.computerlab/~testuser/ (changes ip to tiny.computerlab and add
> the trailing /) but that can't be found. Is there a way to fix this?


Apache docs for UseCanonicalName explain why the redirection and how to to
possibly make your incomplete URL work. I do not understand what changes
the /~username to /~testuser though, unless that is something else in your
server config.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11