Hi Guys:
I'm no expert in this, so please bear with me. I am on Windows 8. I have set up apache from XAMPP with several virtual hosts, one for each of my sites, and mappings like these (in an apache conf file):
DocumentRoot "D:/Garry/Documents/Web Site/www_mygames"
ServerName mygames.localhost
....
DocumentRoot "D:/Garry/Documents/Web Site/www_mycharts"
ServerName mycharts.localhost
...
When I fire up apache, these work just fine in a browser, so I know I've got that part right.
Presumably, to use apache with Webuilder, I would go to Options > Preferences > Preview > Mappings and map "D:/Garry/Documents/Web Site/www_mygames" to "http://mygames.localhost". Then I'd fire up apache and all would be fine.
But.. but.... all WOULD be fine if these mappings were defined on a per-project basis, rather than being globals. Since they are globals, as far as I can see I would have to change the mappings each time I switch between projects (and sites).
Is that correct?
=============
And another question. What is the difference between using the internal server and an external server to view php files? I wrote a test php file (that included file paths such as "../graphics/historyofthebiblepodcastlogo.png") which worked fine in a browser when using the external apache server, but when using the Webuilder internal server, it failed to locate the referenced image. Does the internal server start from a different root or something?
Yours,
Garry
Webuilder 12.3- Mappings with several virtual hosts
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Re: Webuilder 12.3- Mappings with several virtual hosts
1) Yes, the mappings are global, there are no per-project mappings. But you can map map "D:/Garry/Documents/Web Site/www_mygames" to "http://mygames.localhost", map "D:/Garry/Documents/Web Site/www_mywork" to "http://mywork.localhost" etc - add as much as you need.
2) Built-in server generates paths like this: http://localhost:89/~D/Temp/somefolder/index.php that correspond to script location in file system.
2) Built-in server generates paths like this: http://localhost:89/~D/Temp/somefolder/index.php that correspond to script location in file system.
Blumentals Software Programmer
Re: Webuilder 12.3- Mappings with several virtual hosts
Many thanks for your response. Makes perfect sense, and works a treat.
I'd like to thank you and your team for your excellent support. Over the years I've been using Webuilder, you have provided first-class and timely responses to all the daft questions I've asked.
I'd like to thank you and your team for your excellent support. Over the years I've been using Webuilder, you have provided first-class and timely responses to all the daft questions I've asked.