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!

DWMX - localhost and relative site root mapping problem

Status
Not open for further replies.

Roy33

Technical User
May 29, 2001
21
US
I am having a problem getting IIS to properly map my web root.

I'm using DWMX and have never had this problem beofre. I've always used (on the same machine) F:/SITES/[the site] as the local storage area and then C:/localhost/Webs/[the site] as the testing server. [the site] = the name of the current project (e.g. Car Company).

When I preview the site from dreamweaver, IE/IIS attempts to look for the site in the /localhost/ directory INSTEAD of the /localhost/SITES/car company.

Everthing is configured properly in DWMX. If I go to the page runs without any problems -- so the server end seems ok.

I can even get to Company/index.aspx but none of the graphics load. If I hover the mouse over the graphics quickly, I see in the status bar that the URL is /localhost/images/car1.gif INSTEAD of /localhost/SITES/images/car1.gif.

For some reason the url is leaving out this "second level" of mapping. I've been using DWMX for a while and I've never had this problem before.

For whatever it's worth, this is a VERY simple testing site has a root directory where the .aspx files are, and an IMAGES directory where all the images are located. In DWMX, the image, car1.gif, is listed in the Src box as: /images/car1.gif. Thus, I have no idea where it's "losing" the "SITES" part of the relative path.

Any help is greatly appreciated.
Thanks in advance!
 
You need to go through the whole site set up and make sure all of the local/remote/testing sites are setup correctly.

BTW the default location for IIS is c:\inetpub\ this may be the problem. Also you have a space in your foldername, as in
Code:
[URL unfurl="true"]http://localhost/SITES/Car[/URL] Company/index.aspx try replacing it with [URL unfurl="true"]http://localhost/SITES/Car_Company/index.aspx[/URL]

Cheech

[Peace][Pipe]
 
Thanks.
I tried those things and still no success. What strange is that the macromedia test site, the RecordStoreDotNet works without a hitch. It's folder is C:/inetpub/ which equals //localhost/recordstoredotnet. Obviously I put the car site in the folder so that it's localhost/Car and it still doesn't work!

I think its something to do with the document vs. site specific links when I designed the site (Eg. ../images vs. ./images vs. /images.

I tried the car site on TWO machines, both of which are configured simiilarly (for ASP.NET and IIS) and tried the recordstoredotnet on both machines. The car site flounders on both and the recordstore is fine on both.

Go figure!

I guess I'll restart from scratch with a basic 2 page site and see if I can hammer out the problem.

Thanks for the try!
 
I sort of solved the problem.
I put the local files anywhere.
I put the remote and the testing to C:\inetpub\ I did it as a regular directory in the root of the web server, NOT as a virutal.

I then changed the SRC property for some images from /image/image1.gif to ../image/image1.gif. Now it loads. The ../ makes the difference.

The question now is how to default this image behavior.

To another post...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top