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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OSX/website on DSL, keep getting ISP address in the URL.

Status
Not open for further replies.

SimonDavis

Technical User
Mar 16, 2001
613
GB
Hello,

I am using my Mac as a webserver, and appear to have the site up and running OK, but I have a strange and irritating problem. I'm fairly new to OSX, so please be gentle.

The problem is; When I go to my website from a browser, it is OK. The URL shown in the broswer is
If I click a link on that page, it is also OK, the URL is shown as
But, if I have a subdirectory with just an index page, and go to that, whether directly or through a link (ie, I just type or click the ID of my ISP appears in the URL, and stays there.

So, instead of the url in the browser being it shows - Virtua being my ISP. This ID stays shown for all subsequent pages I load.

The site works fine, but obviously I don't want this happening.

The DNS records for my site are all OK, I have been running it on a Windows server, with no problems.

On the Mac, after various faltering tweaks on the Apache config file, I have set everything back to default, and am just working with one domain.

Any ideas? All I have really done is set websharing to on. Everything else is more or less default, although I have installed mySQL and activated php, both of which work OK too. I doubt that makes a difference.

Thanks!
 
Make the link like this and see what happens:

mydomain.com/subdirectory/index.htm
 
Hi, thanks.

Yes, that already works, but it's kind of a workaround, which I prefer not to use.

Having said that, for no good reason I can see I have solved the problem by putting the server as a virtual host in the apache config file.

Now I have a new problem, but I'll post that in the Apache forum.

Thanks again for your suggestion!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top