TestLocalhost.netThere's no place like 127.0.0.1 |
Use http://dev.testlocalhost.net or https://dev.testlocalhost.net -
this will resolved to your computer (127.0.0.1)
You may also specify the port number along with the domain name.
If you encounter 404 error, most likely that's because you haven't configured your webserver; here is how to configure it:
server {
listen 80;
server_name *.testlocalhost.net;
location / {
root /var/www/html/;
}
<VirtualHost *:80>
ServerName *.testlocalhost.net
DocumentRoot /var/www/html/
</VirtualHost>
ipconfig
hostname -I | awk '{print $1}'
ipconfig getifaddr en1
1. Download SSL
server {
listen 80;
server_name *.testlocalhost.net;
listen 443;
ssl on;
ssl_certificate /etc/ssl/certs/selfsigned.crt;
ssl_certificate_key /etc/ssl/private/selfsigned.key;
location / {
root /var/www/html/;
}
<VirtualHost *:80>
ServerName *.testlocalhost.net
DocumentRoot /var/www/html/
SSLEngine on
SSLCertificateFile /etc/ssl/certs/selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/selfsigned.key
</VirtualHost>
1. You need choose one (or more) of subdomain to point to your localhost (See case 1-3).
2. Install Test Localhost (Full Screen) app or
Test Localhost (Standalone) app and open it
3. Click one of the subdomain that will point to your localhost
Use http://testlocalhost.com or https://testlocalhost.com - this will resolve to 127.0.0.1 (not related to this website)
If you find this website useful, share this on your social media and/or link back to us.
Do you have any suggestion, want to report revoked SSL, missing subdomains, etc? Contact us! Ready to have your own domain name?