Webuilder 12.3- Mappings with several virtual hosts

Post your questions and problem reports here

Moderator: kfury77

Forum rules
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;

Webuilder 12.3- Mappings with several virtual hosts

Postby DrGarry » Mon Aug 11, 2014 8:35 am

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
DrGarry
 
Posts: 15
Joined: Wed May 04, 2011 12:13 pm

Re: Webuilder 12.3- Mappings with several virtual hosts

Postby Aivars » Mon Aug 11, 2014 12:39 pm

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.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Webuilder 12.3- Mappings with several virtual hosts

Postby DrGarry » Thu Aug 14, 2014 2:04 pm

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.
DrGarry
 
Posts: 15
Joined: Wed May 04, 2011 12:13 pm


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 18 guests