p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 16th, 2006, 10:30 PM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Testing server grief! Image path gone nuts!

hi folks, can you help with this?
my images wont display in my testing server! but they display fine on the remote site (thankfully)

ok more detail:

when i right click the image on the remote site, the properrties show the url as

http://site-n.co.uk/images/pic.jpg

however on the testing server there is no image, just the little red x

i right click to see the properties, and the url is:

http://localhost/images/pic.jpg

This is wrong, and it should read

http://localhost/site-n/images/pic.jpg



i have several sites in my htdocs folder, so the site root should be http://localhost/site-n



Now, my site definition settings:

Local
=====
Site Name = site-n
local root folder = D:\webs\site-n
local images folder = D:\webs\site-n\images
http address = http://localhost/site-n

Remote
=====
Access=FTP
host = ftp.site-n.co.uk
host dir = /htdocs/
user, pass etc, all work ok, connects


Testing Server
=============
Server Model = PHP MySQL
access=FTP
host = 127.0.0.1
directory = /site-n/
user pass etc ok connects fine
url prefix = http://localhost-site-n



I have either done something stupid, not done something, or something like that! The only thing that changed (I upgraded my server btw but it all went seamlessly)was the site definition. Now like I say when I publish it keeps looking in the wrong path for the images...



Any help would be absolutely superb! It's 3:29am and I've been at this for far too long!

Cheers Everyone!!
The Del Boy




Live forever, or Die in the attempt...
__________________
Live forever, or Die in the attempt...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 17th, 2006, 01:26 AM
Registered User
 
Join Date: May 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got it! And figured something way cool out at the same time!

It had nothing to do with the dreamweaver site definition! Instead it had something to do with "VHosts" in apache, which says that depending what you type in, like http://localhost, depends which folder it will put you in as the root!

The bonus of this is that you can create all sorts of fake website names that will point to localhost, but the virtual host definition in the conf file dictates which folders content you'll see.

so now I have http://www.website1.dev pointing at my site!
and I have http://i.cant.believe.this.works pointing at another folder in my htdocs! It's now 6:23am! thank god for coffee!

Anyway I thought you might all like this link because it show you how to set it up, it's a piece of cake!
http://www.mezzoblue.com/archives/20.../virtual_host/



Live forever, or Die in the attempt...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image not displaying properly but I path correct DrGonzo XSLT 1 January 22nd, 2007 05:14 AM
Help: Pass the image path to another page hoailing22 ASP.NET 1.0 and 1.1 Basics 7 March 13th, 2006 10:19 AM
how to insert the path of image in sql server hoailing22 ASP.NET 1.0 and 1.1 Basics 0 February 28th, 2006 03:37 AM
How to insert path of the image in sql server hoailing22 SQL Server 2000 0 February 28th, 2006 03:32 AM
Testing your web server vagwale Classic ASP Basics 2 August 5th, 2003 11:57 AM



All times are GMT -4. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc