I have Apache set up on my pc to preview php pages. It works fine for a single site mapping My Webs\mysite\ to http://localhost:8080/. However, when I try and use the VirtualHost feature of Apache it only works for the main site, not the secondary sites. I have tried various mappings including site names in place of localhost but so far to no avail. Any clues, anyone?
Graham
Preview multiple php projects
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;
Karlis
Thanks. For anyone else who encounters this problem the answer for me was:
1. Apend local server names in the hosts file in c:\windows\system32\drivers\etc:
127.0.0.1 shepsplacelocal
127.0.0.1 passionateobserverslocal
2. In Apache httpd.conf file use same server names in virtualhost containers:
<VirtualHost *:8080>
ServerName shepsplacelocal
otherstuff
</VirtualHost>
<VirtualHost *:8080>
ServerName passionateobserverslocal
otherstuff
</VirtualHost>
3. In WeBuilder Options>Preferences>Preview>Mappings map document folders to:
http://shepsplacelocal:8080/
http://passionateobserverslocal:8080/
Graham
Thanks. For anyone else who encounters this problem the answer for me was:
1. Apend local server names in the hosts file in c:\windows\system32\drivers\etc:
127.0.0.1 shepsplacelocal
127.0.0.1 passionateobserverslocal
2. In Apache httpd.conf file use same server names in virtualhost containers:
<VirtualHost *:8080>
ServerName shepsplacelocal
otherstuff
</VirtualHost>
<VirtualHost *:8080>
ServerName passionateobserverslocal
otherstuff
</VirtualHost>
3. In WeBuilder Options>Preferences>Preview>Mappings map document folders to:
http://shepsplacelocal:8080/
http://passionateobserverslocal:8080/
Graham