Scenario 2 - Serve the statping instances using xampp, to do this you can configure apache virtual hosts, you have one instance of the web server with will identify the header to know wich status page should serve. Im not familiar with statping or the web server it uses, but i highly doubt you can run 2 instances in the same port. Scenario 1- Statping uses is own http server, in this case you can change the ports xampp is using to clear them, so statping can use the standard ports, i have my local environment in port :8888, this is taking in consideration you are not using xampp to serve other websites that need standard ports. I can assume you have all the network part solved, (ip address changes, ports open in your router, etc.) since you comment that you can access the page from outside your network adding the port in the URL. Restart your apache and you should be able to access the new domain on localhost via Please comment for questions if you have trouble following the steps.If i understood correctly, what you are trying to do, is to use your own computer as hosting for two instances of statping in subdomains. This entry defines the SSL certificate and key file location which are provided by XAMPP default installation.ĥ. SSLCertificateKeyFile "/Applications/XAMPP/xamppfiles/etc/ssl.key/server.key" SSLCertificateFile "/Applications/XAMPP/xamppfiles/etc/ssl.crt/server.crt" Open the ssl configuration file of XAMPP ( nf) which is located at /XAMPP/xamppfiles/etc/extra for OSX version of XAMPP. Now for some reasons you might want to add SSL support to your localhost, so that you can replicate the production settings on your local, Or there are some third party payment gateway API's which can only be integrated under secured url's. Restart your apache, you should be able to access the application via mynewapp.local in your browser.Ĥ. Open the hosts file into editor and put following entry into it 127.0.0.1 mynewapp.localģ. In mac osx the hosts config file is located at /etc/hosts. Along with this configuration, we need to enter the entry of this new ServerName into OS's hosts config file. This entry denotes the path of your Application via DocumentRoot Entry, and also defines a ServerName for our application i.e. Options Indexes FollowSymLinks Includes ExecCGI The file is located at /XAMPP/xamppfiles/etc/extraĭocumentRoot "/Users/myusername/Projects/myNewApp" This file contains the Virtual host setting. Open the XMAPP virtual host configuration file ( nf) in your editor.Let's consider you have an php application which you have stored under /Users/myusername/Projects/myNewApp in the following steps we will configure our XAMPP to run this application along with SSL support. adding SSL support on your XAMPP localhost for newly created localhost. You need to either use a different certificate for this domain or create a certificate which includes both names. No setting on client or server can bypass this requirement. A certificate issued for localhost only will not match a URL using phpcode.localhost as domain name. To be able to access your domain other then localhost via https, i.e. 2 Answers Sorted by: 0 A certificate must match the name in the URL.For example if you are developing an application with name SampleGame, you can set domain under virtual host to access it by samplegame.local/ To have a different domain name on your localhost to access different application.To be able to access php code via XAMPP that is in a directory other than htdocs which is the default directory under XAMPP to store applications.In this article we will see how we can add a separate virtual domain in XAMPP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |