I have a nextcloud and erpnext running on an nginx webserver. When I try to access my nc from my home network, it works just fine. But when I try to access it from a public network, it shows me erpnext. It also does not redirect to the domain, running erpnext.
Both websites have their own (sub)domain and all other websites on this server are working without any issues
All websites are in separate directories and have their own nginx.conf
Related
I want to access my website through Nginx as a Web Server.I just came accross an issue. Doesn't matter if its a local setup or one with a domain name.I want to setup my domain using Nginx server.
Any one can help to setup to my configuration. I am using aws ec2 server for hosting
Due to configuration unable to run my site.
I'm having trouble getting my ASP.NET Core MVC web application deployed on Amazon's Lightsail hosting.
I've followed this article on Using Amazon Lightsail for ASP.NET Core to get my aspnetcore 2.1 application build into a service and nginx forwarding any accesses on the site from port 80 to port 5000.
My Lightsail instance is running perfectly fine:
From the SSH terminal, if I do a wget http://localhost, it returns an error saying there is no certificate. I have to force it with wget http://localhost --no-check-certificate, which then returns the index.html file for the webpage.
When going to the Static IP for my Lightsail instance on Chrome, however, nothing comes up on the webpage, saying "The site can't be reached".
If I had to guess what the issue is, it would be something about the certificate. I've searched around for solutions to that but found nothing of help.
What am I missing to get this application to run on the Lightsail Static IP so users can visit my website?
Did you open up the port on the lightsail firewall?
From your detail page for your instance click on networking and ensure you've added port 80
Also, try removing nginx and just accessing the application via port 5000 (after opening it up in the firewall).
Website with ssl on wordpress. Moved it on localhost, changed wp-config, changed https://olddomain.ru to http://newdomain.ru.
But still have error ERR_SSL_PROTOCOL_ERROR in browser and Invalid method in request \x16\x03\x01 in apache2 logs.Trying to start it via MAMP. How to disable SSL?
This question relates to current and previous MAMP and MAMP PRO versions. MAMP PRO assists in replicating basic web host production environment on a users local Windows based system.
First, it's best to isolate the problem by disconnecting your system from internet.
Turning off GroupStart for Apache and MySQL by un-checking "Include MySQL in GroupStart" is another isolation problem solving technique:
https://documentation.mamp.info/en/MAMP-PRO-Windows/Servers-and-Services/Apache/
https://documentation.mamp.info/en/MAMP-PRO-Windows/Servers-and-Services/MySQL/
Emptying logs by erasing the log files prior to trying out the steps below is another way to isolate problems:
C:\MAMP\logs
Most local systems have AntiVirus program and the antivirus program usually has software firewall bundled. Be sure to add Web Server and HTTPS ports under ports and services of your choice of AntiVirus software.
1. Custom Domain:
First issue is related to assigning custom domains. A custom domain is assigned by modifying Windows Hosts file to point localhost host with IP 127.0.0.1 to a fictitious domain name.
Here is how the default hosts file looks like:
https://support.microsoft.com/en-us/help/972034/how-to-reset-the-hosts-file-back-to-the-default
Here is the required modification:
hosts file
127.0.0.1 newdomain.ru
::0 localhost
::0 is the bus/port designation of a systems network adapter. Usually the first available network adapter software on a device has ::0 address.
After modifying hosts file be sure to flush dns by using Windows command prompt:
ipconfig /flushdns
2. Location of Virtual Hosts data
MAMP documentation recommends you store virtual Hosts data outside of default C:\MAMP\htdocs directory.
https://documentation.mamp.info/en/MAMP-PRO-Windows/First-Steps/View-Localhost/
3. Serverside language application
MAMP recommends to serve serverside language applications such as WordPress on port 80 in your local development environment.
https://documentation.mamp.info/en/MAMP-PRO-Windows/Troubleshooting/WordPress/WordPress1/
I have Windows Server 2008 and IIS 7, and I'm using an ASP.NET app. I am trying to run multiple sites from one IP, but I can't access the sites from the outside. I can only access the Default website from outside but when I want to access the second one it does not work.
host configured for both sites:
10.10.10.1 www.mydomain.com
and
10.10.10.1 sport.mydomain.com
They both run fine locally on the Server and I have added a rule on the firewall to allow all inbound. but still
any help will be really appreciated
Maybe try to change the port for the second site.
I am running docker toolbox on windows 7. I have 3 containers, nginx, php, mysql. I understand that docker is running a virtual machine and that to access my site I need to use the virtual machine ip rather than localhost.
So my site is at 192.168.99.100. I need to access my site via a domain name like so: mysite.com.
The closest I have coming to figuring this out is this: https://github.com/docker/docker/issues/15740
But it still doesn't really solve the issue. In my Windows hosts file I have tried:
127.0.0.1 localhost mysite.com
and
192.168.99.100 mysite.com
And still I get site can't be reached error when I try and load mysite.com. If I use 192.168.99.100 the site loads.
How can I fix this, or is it even possible with a virtual machine?