![]() ![]() If you have any other questions regarding to this topic, feel free to ask in the comments below. If you XAMPP freezes when you want to restart the Apache, make sure that you are not using any HTTP:// or / on the end of the domain you wish to create a directory for. After you restarted the Apache, you should be able to access your new subdomain. If you are done with this and you are 100% sure you did everything right, restart your apache using the control panel of XAMPP (stop/start). Note: Windows 7 or Windows 8 doesnât allow you to edit that file, to edit that file first copy it to other location say Desktop then edit it in your favourite editor and then paste (replace) edited file in etc folder. Create a backup of the hosts file then open it with your favorite text editor and add the following lines at the bottom:Ä¡27.0.0.1 localhost 127.0.0.1 ![]() This can be found in C:/Windows/System32/drivers/etc. 19 I've trying to create subdomain in my local xampp installation for some time. If you are done with this, you need to register your subdomain, in the Windowâs hosts file. ServerAdmin #DocumentRoot 'C:/xampp/htdocs/ ' ServerName sub.localhost ServerAlias ErrorLog 'logs/ -error.log' CustomLog 'logs/ -access.log' combined![]() The final result would look something like the following: Change the * to sub.localhost and on each line where it says dummy-host.localhost to. # #ServerAdmin #DocumentRoot 'C:/xampp/htdocs/dummy-host.localhost' #ServerName dummy-host.localhost #ServerAlias #ErrorLog 'logs/' #CustomLog 'logs/' combined # Äuplicate it and remove the # from before each line, then we are ready to create the subdomain, in our case it will be sub.localhost of course you can make your whatever you would like to.Open up the nf with your favorite text editor and look for the following: To create the subdomain for you localhost you need to edit a XAMPP configuration file named nf this file is located in C:/xampp/apache/conf/extra (this might be different for you depending where you installed XAMPP). The folderâs name can be just the subdomain name (ex: the folder would be sub) or you can use the whole domain name for the folder name (ex: the folder would be Creating the Subdomain Go to C:/xampp/htdocs (this might be different for you depending where you installed XAMPP). Firstly you want to create the root directory of the new subdomain. Creating a Root Directory Folder for the Subdomin But what if you want to have multiple websites on your local server? You could simply create new folders and open them as but thatâs just boring! How about creating a subdomain? Something like now that looks like something, doesnât it. But when I try to install SSL-certificate for it is not installing properly.Ä¡) is redirecting to some other site say hosted on same server.In the previous article, weâve been talking about how to set up XAMPP on your local PC and how to install WordPress on it. Open nffile in text editor of your choice. I have installed SSL-certificate for IIS of Godaddy server and it is working as expected. Open your xamppinstall directory and locate nffile under apache/conf/extrafolder. I have purchased seperate ssl certificate for both subdomain. I have 2 subdomain sayÄ¡) having binding settings say IP=10.1.1.2 and Port=8445Ä¢) having binding settings say IP=50.72.139.100 and Port=443. I am using Windows 2008R2 server with Plesk 10.4.4. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |