How to host Apache and Nginx on the same server? - hosting

I'm trying to host a django site in conjunction with nginx and gonicorn on a hosting, but this hosting already hosts php sites running apache. In the nginx site settings, I have port 80 registered and when I start nginx, it says that this port is already taken by apache.
I changed the port in the site config
But the site does not open on the direct domain http://help.buhcrm.ru/
It opens only when added to the port address specified at the beginning http://help.buhcrm.ru:300/
The hosting technical support service replied that http://help.buhcrm.ru/ is proxied on port 443, but this port is occupied by apache
I don't want to touch apache configs, because this is not my server and I'm afraid to break everything

Related

Apache not able to start on Windows using XAMPP on any port

I have tried all possible solutions:
Disabled IIS and other web services
Changed Listening port in http.conf and httpd-ssl.conf from 80/443 to 8080,8000,7777/4433,4434
Changed services and ports from the control panel itself.
Nothing seems to work.
PS: I have Flask configured to port 5000 which is its default.

Installing Wampserver2.0i on Windows Server 2003 but Oracle Server using port 80

I've installed Wampserver2.0i on Windows Server 2003 and I've tested the port 80 using the option from the menu once I clicked the wamp icon in the notification bar and the result from the cmd as the below:
Server: Oracle HTTP server powered by apache/1.3.22
mod_plsql/3.0.9.8.3b mod_ssl/2.8.5 OpenSSL/0.9.6b mod_fastcgi/2.2.1
The problem is localhost take me to Oracle server not to the www directory!
How can I solve this?
You cannot run 2 web servers on the same machine without changing the configuration of one of them. By default all web servers Listen on TCP port 80 and thats the reason you are having problems.
Because the Oracle HTTP server powered by apache/1.3.22 is probably configured to start automatically it has already captured TCP Port 80 and therefore when you start WAMPServer it cannot get access to port 80, only one program can use a port at any one time.
You can change the port number that Apache listens on quite easily, as suggested by bob dylan.
Edit the httpd.conf file and change the config to tell Apache to listen on another port, so using the WAMPManager menus you would do this :-
left click wampmanager -> Apache -> httpd.conf
This will open the httpd.conf file in an editor, look for these lines
Listen 0.0.0.0:80
Listen [::0]:80
And change them to, for example
Listen 0.0.0.0:8080
Listen [::0]:8080
Save the file and then restart Apache
left click wampmanager -> Apache -> Service -> Restart Service
Now Apache will listen on port 8080 so the 2 Apache versions will not conflict with each other.
However this change means that you will have to put the port number on all your URL's like so
localhost:8080
localhost:8080/phpmyadmin
which can become a bit of a pain after a while.
A simpler solution would be to put WAMPServer on another machine and then there would be no conflict. Remember WAMPServer is configured to be a development web server and not a LIVE web server. It should run just fine on your own personal workstation/PC.
In C:\wamp\bin\apache\apache2.4.9\conf
edit httpd.conf where it says:
Listen 0.0.0.0:80
Listen [::0]:80
Then restart your service
http://www.techrepublic.com/blog/diy-it-guy/diy-running-apache-on-a-non-standard-port/

wamp server only running local

Ive been searching around the internet and I cannot not find the answer to why wampserver is only running on localhost. I have pressed Put Online and I still do not know why it is only running offline. Not sure if it is my wampserver setup or my router blocking me, so any help would be great.
To access your server from the internet you need to do a number of things not specifically related to WAMPServer.
First you need to port forward your router, this allows un-solicited traffic on port 80 throught the NAT router firewall protection, into your network where normally for security reasons it is not allowed in. This opens the port and makes sure that all traffic on port 80 of yor router is directed to the PC running WAMPServer i.e. Apache. So you will need to make sure that the PC running Apache has a STATIC ip address and is not being allowctae an IP by the routers DHCP server.
This site can be very helpful with learning how to do that
Once that is done you may also need to configure your software firewall running on the PC that has Apache on it to allow traffic on port 80 into the PC. Although you may have allowed this already when you first ran Wampserver after it was installed.
When you use the WAMPManagers Put Online and Put Offline that changes the Apache config (httpd.conf) and should change
# onlineoffline tag - don't remove
Require local
which tells apache to only allow connections from the PC running Apache
To
# onlineoffline tag - don't remove
Require all granted
which tells Apache that it is allowed to action connections from any ip address in the world
1) Check you firewall setting 80 port enable
2) Check anti virus Blocking
3) c:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf
Order Deny,Allow
Deny from none
Allow from all

GoDaddy Multiple website hosted on Dedicated Server issue

I'm using my friend's dedicated server where he hosts 2 of his websites to host my own, but I'm not familiar with registering domains, and I can't get my domain to point to a specific port I use so that my website doesnt clash with his. He has 2 websites that according to IIS are using the SAME PORT, I installed XAMPP so I had to use the 8080 port, how did he register two different domains for websites hosted on the same ip under the same port? and how do i point my domain to my 8080 port? (using apache)
You need to use host headers to prevent conflicts if you're sharing the same IP, else you need your own IP. With the appropriate dns settings, and host headers setup in iis, you'll never conflict with his sites (that should also be using host headers).

setup tomcat personal webserver

i hosted an apache server by changing few details in the httpd.conf file, used this tutorial. i also did port forwarding so that the server is able to respond behind the wireless router (firewall), it worked completely fine ( i checked by typing the ip and port number from some other host outside the network). now i am trying to run servlets for which i need tomcat server. i have installed tomcat but i am unable to access the server from another host that is not on the same network. could somebody please guide as to how can i achieve this.
I guess I would go with The Apache-Tomcat Connector and use it to connect your new tomcat instance to your Apache.
I did the same thing just as I for apache server, except that I changed the listening port to something else. added that entry in the router. incorporated tomcat in eclipse and then started the sample project. using whatismyip.com, i got the ip address. i could access my webserver from elsewhere...

Resources