Localhost not working on server 2012 - wordpress

I have my wordpress website and I'm using IIS. It's working outside and inside when you're browsing but when you type localhost in the server browser it doesn't work.
I've changed the host file in :\windows\system32\drives\etc\ and remove the comment from:
127.0.0.1 localhost
I've even typed https://localhost but it doesnt work. Can someone assist? It's also using an ssl certificate

Related

blank page with domain name inside

I set up a server on Ubuntu 20.04, installed and configured UFW and fail2ban, installed nginx, opened 80 and 443 ports. Created a config file for my domain and started the server. It works, but from my IP address (from which I set up the server), I cannot get to the site. When I request a domain, I get a white page on which my domain is written in plain text. But as soon as I register the domain and IP in the hosts file, the site becomes available. I see the problem only from my IP, from others - the site is available. I can provide server settings, but they are corny simple. The site is still pure HTML. Even php didn't install.
Help me find the problem, or at least a direction to fix it.
Thanks!
It might be related to cached DNS queries. Remove the entry from /etc/hosts file and restart your local machine.

Creating a localhost version of a secure / https / SSL website

I am trying to copy one of my websites to a localhost MAMP server for further development.
I bring you this as I am unable to access the site due to:
"This site can't provide a secure connection
localhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
I have:
Copied public_html folder to MAMP.
Copied Database Collation and Data.
Created a new user and applied this to the WP-config.
Removed the .htaccess instructions.
Adjusted the options DB to have http://localhost as 'siteurl' & 'home'.
Restarted my computer and local server.
When I go to localhost:8888 it reveals the folder I created. However, when I click it will add
https:// before the URL and give me the error.
Any help you can give would be appreciate, Jason.

Apache blocks websocket protocol for Shiny

I've deployed a web-app using Shinyproxy and Shiny.
If I go to http://localhost/mycontextpath/app/01_example everything works perfectly. The ProxyPass and ProxyPassReverse have been set up in Apache and now I can go directly to http://mywebsite.org/mycontextpath/app/01_example to use my app.
The problem is that the screen greys out automatically. I know it's a problem with Apache as the browser debugger print this message:
Firefox can't establish a connection to the server at ws://mywebsite.org/mycontextpath/wonderful_hypatia/websocket/.
I've tried to add this line to my Apache configuration:
ProxyPassMatch "^/(.+)/websocket" "ws://localhost:8146/mycontextpath/$1/websocket" keepalive=On
But it doesn't seems to work.
Any suggestion? Thank you!
If you have to stick to Apache as your proxy server, read this post Running Shiny Server with a Proxy.
Or if you are open to using Nginx, Shinyproxy website actually has the detailed Nginx configuration on its website under the HTTPS (SSL / TLS) section. That's also the configuration I'm using and it works just fine.

visual studio 2008 localhost URL

everytime I try debug my website I press the F5 key. It will always start with this address
http://localhost:xxxxx/Default.aspx
but the website wont run unless I change the localhost to 127.0.0.1. How do I allow it to run even though it is localhost without having to specify the URL in my project properties?
Add localhost 127.0.0.1 to your hosts file ref http://helpdeskgeek.com/windows-7/windows-7-hosts-file/

Local testing for sub-domains using Url rewriter, Asp.Net 2

I am using UrlRewriting.Net for url rewriting in Asp.Net 2 and IIS 5.1 (offline) and IIS 6 (online)
The application performs the following:
A url of the following nature: http://username.site.com is re-written as
http://site.com/Default.aspx?user=username
This works perfectly online. However, I would like to know how we could test this offline.
I have tried pointing the application to 127.0.0.1 via IIS and then putting username.site.com in the hosts file to point to 127.0.0.1 - but it does not work out.
The website loads up - but the querystring is not generated.
Also tried putting just site.com -> 127.0.0.1 in the hosts file and accessing username.site.com. But in this case, the website does not load (site not found)
Any ideas?
easy way to test this will be to edit your hosts file so that username.site.com points to 127.0.0.1, but you will have to do this for each user you want to test on each PC...
Okay.
I managed to get this working. Its simple if you think about it.
I got myself a DNS server, installed it on my system and configured it to serve me pages from 127.0.0.1 for site.com
If you are wondering, I used a DNS server called SimpleDNS from http://www.simpledns.com/
There is also a free BIND DNS server available from:
http://oldwww.isc.org/sw/bind/view/?release=9.6.1b1&noframes=1
But that was too much for me to configure at this point of time.

Resources