Wrox Programmer Forums
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2006, 09:30 PM
Registered User
 
Join Date: May 2006
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...
 
Old May 17th, 2006, 12:26 AM
Registered User
 
Join Date: May 2006
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...





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 10:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.