Click to See Complete Forum and Search --> : Can't see other machines.


MattWil
09-22-2001, 08:57 PM
Hi, I got freebsd 4.3 installed a while back on an old 486 machine. It's been running great and I've been learning a lot! I installed Apache and have that working, now I want to be able to put in the ip of my old box from one of my windows boxes and see all the apache stuff by typing localhost. I already have all the machines hooked up to a router, I'm running @home. When I first setup freebsd I used the hostname and domain name that @home gave me. So my hostname was hostname.domain and my domain was domain ( :D ). I went into /etc/rc.conf and changed the hostname from oldhostname.olddomain to newhostname.newdomain. I then restarted my machine. Now, I can ping the opposite machine from both ends. I have 2 questions though. 1, how do I share files with both machines. Is that Samba? Right now when I go to My Network Places on the windows machine I can't see the name of the bsd machine. Same thing with the bsd machine, how do I go through files on the windows machine? The windows machine is already setup to share files through the networks. 2, how do I make it so that when I type in the machine ip address in internet explorer on the windows machine I see all the stuff in the /apache/htdocs folder. Do I need to edit the httpd.conf file for this? Or do I need to play around with ports? Thanks!

Also, the reason I didn't post this in the networking linux or webserving forums is this kind of fell inbetween both and also I've posted in there before and nobody answers. I hope it's ok.

[ 22 September 2001: Message edited by: MattWil ]

PLBlaze
09-22-2001, 09:06 PM
Yup for file sharing you will need samba...so your windows machines can see the bsd box.

As for the other question you need to have either local DNS server running or in /etc/hosts file your other hostnames/ip #'s specified...under windows i think the info is held in c:\windows\lmhosts file...with the same format as on UNIX.Hope this helps.

MattWil
09-22-2001, 09:08 PM
Update, I now can type in the local IP address of the bsd machine and I get to the htdocs folder. Now I have 2 more questions, 1 is I can't use the cgi-bin for some reason, it says it's I am forbidden from accessing it. The second question is is there a way to set it up so that I type in the bsd machine's ip address with a folder, like 1.23.45.678/myname and it will direct to another folder. I was looking through the httpd.conf file and I see VirtualHost. Would I just enter <VirtualHost 1.23.45.678/myname>? Just wondering, thanks!

MattWil
09-22-2001, 09:09 PM
Thanks diffie! Now off to find samba! I guess we were posting at the same time, lol.

MattWil
09-22-2001, 10:06 PM
I edited my httpd.conf and I tried to restart but now it won't restart. The error it gives me is it couldn't find my fully qualified domain name, then it tries to use 127.0.0.1 but it can't start up. Can anyone help me with this? I see one some help sites that it says you need to specify ServerName before NameVirtualHost but I don't have a domain name. All I'm trying to do is make it so when I direct the browser on my windows machine to 12.34.56.789/myname, it redirects to /home/myname/www. My httpd.conf file has this in it.


NameVirtualHost 192.168.1.101

<VirtualHost 192.168.1.101>
ServerName 192.168.1.101/myname
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/myname/
DocumentRoot /home/myname/www
DirectoryIndex index.html index.htm
ErrorLog /home/myname/www/error_log
CustomLog /home/myname/www/access_log common
</VirtualHost>


Can anyone help me? Thanks!