Hi,
there are a few ways to solve your problem, probably the simplest is to add a virtual directory to Apache.At the moment your new Apache installation cannot find the root folder for your testing environment,
-- Firstly you must let Apache know about your development directory - In httpd.conf look for
<Directory "C:/xampp/htdocs">
"This directory gives Apache access to all of your XAMPP pages, you could simply change this but then you would loose access to XAMPP facilities so it's not a good idea"
</Directory>
Instead you need to add a directory for you development environment :-
<Directory "c:\sitename\publichtml">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Now restart APACHE using the XAMPP console and check the log for errors.
Next you should activate virtual directory support in APACHE,
Search for the following file, it's location is dependent upon how you installed XAMPP but should be wasy enough to find :-
C:\xampp\apache\conf\extra\httpd-vhosts.conf
Look at the default configuration already in the file and change it like this, no problem if you use different names for your log files- :-
<VirtualHost *:80>
ServerAdmin
postmaster@dummy-host.localhost DocumentRoot "C:/xampp/htdocs"
ServerAlias
http://www.dummy-host.localhost ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
postmaster@dummy-host2.localhost DocumentRoot "c:\sitename\publichtml">
ServerAlias server.localhost
ErrorLog "logs/server.localhost-error.log"
CustomLog "logs/server.localhost-access.log" combined
</VirtualHost>
Now restart APACHE again and look for error messages in Apache's error log - If any errors or if APACHE will not start correct the syntax and start Apache again.
Almost done --
Add the following
127.0.0.1 server.localhost
to
C:\WINDOWS\system32\drivers\etc\hosts
-- Which will allow your testing environment to be found by your browser.
Finally you must add the address of testing enviroment to Macromedia - Just click on the sites button, select the site you wish to edit, open the testing server tab, and in the URL prefix add "http://server.localhost". Now whenever DREAMWEAVE trys to open a website it will search in c:\sitename\publichtml.
eg. Or if you had a website at
c:\sitename\publichtml/web1 you would give DreamWeaver a URL prefix of c:\sitename\publichtml\web1, in this way it is fair easy to run many websites in Dreamweaver through a single virtual directory. Of course you can always set up a different virtual directory in Apache for each website - but the gain is hardly worth the effort.
Chriss.