It is currently Thu Jan 21, 2021 1:22 am
All times are UTC + 8 hours

Hostling multiple local development environments

Web hosting, MySQL, PHP and all that good stuff.

Hostling multiple local development environments

Postby atiras » Tue Oct 15, 2013 11:10 pm

I want to set up my 604 to host multiple local development environments. They don't need to be accessible over the WAN (and indeed probably can't be until I've resolved some router config issues with my ISP) but I can't see how to define them in the Virtual Hosts set-up interface. Assuming an example needs to have the element 'freddy' in it, how would I go about setting this up to point to /Web/Drupal ?

Also, I'll need more than 8 of these eventually, and I've read that there is a limit of 8 -- is there any way around this?
atiras
 
Posts: 28
Joined: Wed Oct 02, 2013 6:37 pm

Re: Hostling multiple local development environments

Postby PlusPlus » Thu Oct 17, 2013 2:10 pm

Hi

I did the following settings and I can access drupal with virtual host "plusplus"

here are my steps

1. Install Drupal
2. Go to web server and configure a virtual host

圖片 495.png
圖片 495.png (34.85 KiB) Viewed 2736 times


3. My client is Windows 7, thus I add a line to the hosts file

Code: Select all
MyNASIP plusplus


MyNASIP which is IP address of NAS
hosts file is under C:\Windows\System32\drivers\etc

4. Open browser and enter http://plusplus and I saw this

圖片 496.png
圖片 496.png (44.93 KiB) Viewed 2736 times


Regarding add more virtual host, maybe you can add the virtual host configuration manually via ssh
you can add a virtual host and check the configuration under /volume0/usr/builtin/etc/apache2/sites-available
PlusPlus
 
Posts: 85
Joined: Fri Oct 04, 2013 5:39 pm

Re: Hostling multiple local development environments

Postby atiras » Thu Oct 17, 2013 6:16 pm

Thank you -- that works. Should have thought of it myself...
atiras
 
Posts: 28
Joined: Wed Oct 02, 2013 6:37 pm

Return to Web Hosting

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest

cron