Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about apache and/or DNS configuration on Solaris 8

Status
Not open for further replies.

cyan01

Programmer
Mar 13, 2002
143
US
Hi,

I am new to apache web server. I would appreciate your help very much on how to configure my apache.

Here is some background. I have an ultra-sparc 1 (solaris 8) and a pc (w2k) which are connected through a linksys router at home. And certainly, I can browse, ftp, telnet to remote servers on the internet from both my pc and my station with no problems at all.

Assuming the ip on the workstation is 192.168.1.100 and a unix login ID to this station is myid, I can visit with no problems at all from my pc through IE. However, I can not visit from my pc. But, I can visit both and from the same workstation through netscape.

The related configuration lines in my httpd.conf are as follows:

UserDir public_html (permission: 755)
DirectoryIndex index.html (permission: 644)

Could some one tell me what I should do so that I can visit from my pc? Does this have anything to do with DNS setup/configuration?

Many thanks.
 
Hi,



Hmmm.... that's strange but nothing to do with dns - probably an IE quirk. If you use ~userX it is supposed to behave the same as it would on the host system - i.e. ~ means the same as /home . For example :



# cd ~userX

# cd $HOME/userX



should be identical under unix.



You may find that IE works with but not with the ~ . Maybe IE just doesn't like that character in a url so try the hex value -->


See also -->


Hope this helps
 
Thanks for the help.

However, unfortunately, it does not work. :(

I noticed another difference: assuming the server name of the Solaris station is srvname, I can visit both and successfully from the station. But I can visit neither of them from my pc. Also, from my pc, I can only ping the IP of the station. I can not ping "srvname". Does this tell me something?

Any thoughts, advices are highly appreciated.
 
Hi,





Hmmm... didn't read your first question properly - I thought the IE & Netscape were both on the W2K box !.





If you can ping 192.168.1.100 from the W2k and reach then it should work unless there is some mod_rewrite stuff going on for IE browsers. But that wouldn't be the case for an 'out-of-the-box' apache install.

The use of the canonical name (svrname) from W2K needs you to add the mapping to the HOSTS file on that box - i.e. :



c:\winnt\system32\drivers\etc\HOSTS



The file may not exist but there should be a HOSTS.SAM (sample) file which you can just rename and edit to add a line like :



192.168.1.100 myservername




Hope this helps
 
Thank you. It works this time, after I made changes in c:\winnt\system32\drivers\etc\HOSTS

Gee, I did not know there is such a file in NT system!

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top