• Home
  • Geocoding
  • Nieuws
  • Contact
BackuPs
  • Home
  • Geocoding
  • Nieuws
  • Contact
  • Geocoding
  • News
    • Internet
      • Wordpress
      • Fraude
    • Fiat
    • Video’s
    • Grappige zaken
    • Software
  • Contact Us

Configuring Virtual Hosts on Xampp – How to Run Multiple Domains

4 januari 2016|Geen categorie, Internet, Software
Configuring Virtual Hosts on Xampp

There are more then one tutorial on the internet on how to configure Xampp to run more then one domain. So far I could not find one that told the complete story. So here it is:

1) In the folder where your Xampp is installed is a folder locate called apache. That folder has a subfolder called ‘conf’ which has ha subfolder called extra. In that last subfolder you will find a file called httpd-vhosts.conf

Vhosts configuration File /apache/conf/extra
The Apache Vhosts configuration File

Open that file in a text editor and
a) enable the virtual host ability by uncommenting line 20 (removing the ‘#’ in that line).

Uncomment the NameVirtualHost  Line
Uncomment NameVirtualHost

b) Add the virtual hosts code to the bottom of that same file. (You will find the code used below in the Toggle (+ sign)). Note i have my Xampp server installed in drive D:\xampp. Make sure you adjust that path when you grab the code snippet below.

Add the virtual hosts one by one
Add the virtual hosts

Now what you need to add is this code to keep the Xampp control panel alive is this:

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot D:/xampp/htdocs ServerName localhost <Directory "D:/xampp/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>

Then for each domain you want to run on your server add this code (change the yourdomain.com to the correct domain name. I used wp.dev and wpempty.dev in my code examples).

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot D:/xampp/htdocs/yourdomain.com ServerName yourdomain.com ServerAlias www.yourdomain.com *.yourdomain.com ErrorLog "logs/yourdomain.com-error.log" CustomLog "logs/yourdomain.com-access.log" common <Directory "D:/xampp/htdocs/yourdomain.com"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>

Click on the plus sign for 'The Code Used'

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot D:/xampp/htdocs ServerName localhost <Directory "D:/xampp/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot D:/xampp/htdocs/wp.dev ServerName wp.dev ServerAlias www.wp.dev *.wp.dev ErrorLog "logs/wp.dev-error.log" CustomLog "logs/wp.dev-access.log" common <Directory "D:/xampp/htdocs/wp.dev"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot D:/xampp/htdocs/wpempty.dev ServerName wpempty.dev ServerAlias www.wpempty.dev *.wpempty.dev ErrorLog "logs/wpempty.dev-error.log" CustomLog "logs/wpempty.dev-access.log" common <Directory "D:/xampp/htdocs/wpempty.dev"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>

Save the file.

2) Change the windows host file. Now in order to be able to call the website in your web browser you need to adjust the host file of your windows install. The file can be located in C:\windows\system32\drivers\etc

Note : if your windows is not installed on the C-drive change the c:\ into the correct drive letter of your install.

Modify the windows Host File
Modify the windows Host File

Add, in this case as i have created two virtual servers, two lines
127.0.0.1 wp.dev
127.0.0.1 wpempty.dev

Adjusted Host file
Adjusted Host file

3) now Stop the Apache server and restart it again in the Xampp controll panel.

4) install your wordpress or whatever website cms in those folders.

5) Open the browser and just type in http://wp.dev or http://wpdempty.dev

If all has been setup correctly you will see the website wordpress install or website cms system you installed.

5 september 2020 BackuPs

Recent News

  • Why am I Not Getting the Windows 10 November 2015 Update? Install it manually?
    Why am I Not Getting the Windows 10 November 2015 Update? Install it manually? 23 december 2015

    Beginning november 2015 Microsoft released the first major update for Windows 10...

  • Google mobile friendly misleads Webmasters
    Google mobile friendly misleads Webmasters 22 maart 2015

    Google was recently sending me messages in my webmaster account that my website...

  • Wordpress  revealing username by login trial and error
    Wordpress revealing username by login trial and error 6 maart 2014

    Security Problem : In any wordpress version it is possible to get a valid loginn...

  • Wordpress changing the admin-ID or hide author pages?
    Wordpress changing the admin-ID or hide author pages? 8 oktober 2013

    In wordpress you can easily change the admin id to a name which is less hackable...

  • Fiat Punto Evo, Grande Punto, Punto probleem ruitensproeier / ruitenwisser
    Fiat Punto Evo, Grande Punto, Punto probleem ruitensproeier / ruitenwisser 12 maart 2012

    Punto, Grande Punto, Punto Evo Fiat heeft een aantal auto’s op de markt ge...

Tag cloud

geocoder latitude hide fraude backups IP Plattegrond Surfing Software Nieuws Internet calculator calculate Grappig authorisatie helpdesk hacken bankieren News Inhoudsopgave Carabao Muziek Caelo bekenden Raadsel Video aziaten geocoding pinpas Youtube Thai longitude Loso Review Sek Loso free Invisible vrienden Sitemap Outlook Animatie Funstuff Stealth online Thaise

Laatste nieuws

  • Why am I Not Getting the Windows 10 November 2015 Update? Install it manually?
    Why am I Not Getting the Windows 10 November 2015 Update? Install it manually?

    Beginning november 2015 Microsoft released the first major update for Windows 10...

  • Google mobile friendly misleads Webmasters
    Google mobile friendly misleads Webmasters

    Google was recently sending me messages in my webmaster account that my website...

  • Wordpress  revealing username by login trial and error
    Wordpress revealing username by login trial and error

    Security Problem : In any wordpress version it is possible to get a valid loginn...

Tag cloud

Nieuws vrienden free Carabao Sitemap bankieren Raadsel Software backups calculator Funstuff Muziek Caelo calculate hacken pinpas Sek Loso latitude geocoding longitude Stealth Thaise fraude Loso bekenden Inhoudsopgave Plattegrond Grappig helpdesk Internet geocoder News Invisible online Thai aziaten Video Outlook Animatie IP authorisatie Review Surfing Youtube hide

BackuPs op Twitter

Volg mij via EmailVolg mij via Twitter
Copyright
webontwerp door BackuPs