|
|
 |
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.
|
 |

May 16th, 2006, 10:30 PM
|
|
Registered User
|
|
Join Date: May 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|

May 17th, 2006, 01:26 AM
|
|
Registered User
|
|
Join Date: May 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |