LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2009, 11:00 PM   #1
nahom2112
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Rep: Reputation: 0
Hide hostname in url


Hello experts,
Please let me know how to set httpd.conf to hide hostname in a url that's displayed on the address bar

My url is http://ncscould-n1/vm1/hw.html

Can I hide ncscould-n1.

thanx a lot
 
Old 12-27-2009, 12:02 AM   #2
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
If you hide the hostname, how will an application determine which computer on the network to fetch the html file from? Could you be more specific?
 
Old 12-27-2009, 06:51 AM   #3
nahom2112
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
What I meant is I don't want to display the real hostname, for security reasons. I tried .htaccess, couldn't get it workin, not experienced with apache.
 
Old 12-27-2009, 07:28 AM   #4
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
What security reason if you don't mind? How does not knowing the hostname provide security? If I were you I'd put a firewalled proxy server in the middle.
 
Old 12-27-2009, 05:48 PM   #5
nahom2112
LQ Newbie
 
Registered: Dec 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Ok I'll elaborate :
I've a web server ncsweb, uses proxy config to call http://ncscloud-n1:80/vm1/hw.html.

Contents of ncscloud-n1:80/vm1/hw.html:
<html>
<body>
<h1>FIRST NODE HELLO WORLD</h1>
<a href="http://ychcloud-n1.ych.com/vm1/hw2.html">y3tech</a>
</body>
</html>

Contents of ncscloud-n1:80/vm1/hw2.html:
<html>
<body>
<h1>FIRST NODE HELLO WORLD Y3TECHNOLOGIES</h1>
<a href="http://ychcloud-n1.ych.com/vm1/hw.html"> back</a>
</body>
</html>



When I click on y3tech, It opens hw2.html. In the address bar I see http://ychcloud-n1.ych.com/vm1/hw2.html. How do I mask the url without making any changes to html code
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about changing hostname, it does not change the url mrotsliah Linux - Server 3 08-27-2009 12:26 PM
Configure Url to hide directory in apache immortaltechnique Linux - Networking 1 03-03-2008 11:36 PM
Hide hostname in telnet shan_nathan Linux - Security 4 01-09-2008 08:56 AM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 09:51 AM
Possible to hide hostname information from w/who/finger ? SBing Linux - General 2 03-09-2004 04:47 AM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration