Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can I partition WAMP to host two websites?

Featured Replies

Hello all,

 

I'm a developer by trade so I don't really concentrate on servers but I need to split my WAMP server to host two sites. The reason being is because I need to host a Magento site on one site, (to store my ecommerce work on), and on the other I need a host to serve my other projects.

 

I've googled everywhere but there aren't any decent tutorials. Can anyone send me links of good online tutorials please?

 

Thanks in advance.

I don't use WAMP but it should be as straightforward as adding each site in a folder.

 

According to the docs:

 

 

Using wampserver

The “www” directory will be automatically created (usually c:\wamp\www)
Create a subdirectory in “www” and put your PHP files inside.
Click on the “localhost” link in the WampSever menu or open your internet browser and go to the URL : http://localhost

 

So assuming you have a folder c:\wamp\www simply add another folder for each site, eg c:\wamp\www\site1 c:\wamp\www\site2

 

Then just call each site using http://localhost/www/site1 or http://localhost/site1

 

If that doesn't work you'll probably have to use the virtual route as explained at http://www.trailheadinteractive.com/creating_multiple_virtual_sites_a_single_apache_install_windows_xp

Aye, I use wamp and xampp.

 

Store the folders in the www folder and then use the apache > httpd.conf file to add virtual hosts in like:

 

<VirtualHost *:80>
DocumentRoot "C:/wamp/www/_personal/test"
ServerName test.dev
</VirtualHost>
be sure to have this in there too:
NameVirtualHost *:80
IncludeOptional "c:/wamp/vhosts/*"
Include "c:/wamp/alias/*"
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/"
ServerName localhost
</VirtualHost>
Then you should head to C:\Windows\System32\drivers\etc (if using windows) and edit the hosts file to include something like:
127.0.0.1 test.dev
Restart all services on Wamp and then hit the URL http://test.dev and the site should be there

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.