how to create virtual host on xampp

host file location: C:WindowsSystem32Driversetc

 

At first you have to reset the permission to edit and save host file. Here is the process

  • Right click on the ‘host’ file then select ‘Properties’
  • You will get a new window, click on the ‘Security’ tab
  • Select the User that you are logged in from ‘Group or User names’ box
  • Now hit the ‘Edit’ button and you will get another window
  • Select the ‘Users’ that you are already logged in
  • Allow ‘Full control’ to select all permissions
  • Now Apply and click ok
  • And now nobody stop you to save the host file 🙂

how-to-create-virtual-host-on-xaampp

 

httpd.conf file loc: D:xamppapacheconf

uncomment “Include conf/extra/httpd-vhosts.conf” if it is commented.

 

httpd-vhosts.conf file location: D:xamppapacheconfextra

 

Lastly need to restart apache server

 

 

? How to Enable SSL in Xampp (Localhost)

Way one:

Configure your SSL in xampp/apache/conf/extra/httpd-vhost.conf like this:

 

<VirtualHost *:443>

DocumentRoot D:/xampp/htdocs/yourProject

ServerName yourProject.whatever

SSLEngine on

SSLCertificateFile “conf/ssl.crt/server.crt”

SSLCertificateKeyFile “conf/ssl.key/server.key”

</VirtualHost>

 

Way Two:

If you need SSL in more than one project, it’s better to change it in the httpd-ssl.conf

Easy steps:

  1. D:xamppapacheconfextrahttpd-ssl.conf”
  2. Search ‘DocumentRoot’ text.
  3. Change DocumentRoot

DocumentRoot “D:/xampp/htdocs” to

DocumentRoot “D:/xampp/htdocs/project name”.

 

And lastly restart the apache server.

Advertisements

Update – Please visit skpaul.me for latest posts and updates

skpaul.me

Hi,

Greetings!!

Thanks for visiting my blog, I have open a blog (http://skpaul.me). So from now, you will get all latest posts and updates on http://skpaul.me.

 

Please take a look on my personal blog (http://skpaul.me), and let me know your comments and review.

 

Thanks in Advance

sk paul

http://skpaul.me

2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,900 times in 2014. If it were a cable car, it would take about 48 trips to carry that many people.

Click here to see the complete report.

2014 in review

The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

A San Francisco cable car holds 60 people. This blog was viewed about 2,900 times in 2014. If it were a cable car, it would take about 48 trips to carry that many people.

Click here to see the complete report.

hello :) from sk_paul

Hi Hello,

Just now I  open this blog, and after opening this blog (https://skpaul82.wordpress.com/), now I ‘m thinking what I wright. Okey, I will wright at least one post every week, whatever running in my head on that time.

And lastly I need all of yours valuable constructive comment. 🙂

sk_paul

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!