I'm trying to deploy a war file onto my server which is tomcat 6 and it runs on a linux machine. My project runs if i give the url with the port number eg: http://192.168.1.8:8080/uctc but it fails to run if i run it without the port number eg ://192.168.1.8/uctc ...can anyone tell me how to run my website without the port number??
8080 is default tomcat port, so configure your tomcat server to use 80 port other than 8080.
see: http://www.klawitter.de/tomcat80.html
Check in server.xml... there is an entry similar to Connector port="8080".. change the 8080 to just 80 and save. Then restart the tomcat service
This is assuming you're not already running another service on port 80 .
Related
I cloned a hello-react app from the Hasura Hub, deployed it but it is not running.
I get a message saying-
This typically happens when there is a port configuration error.
Check that the value of service.spec.ports.targetPort in
microservices/ui/k8s.yaml is the port where your microservice is running.
In the k8s.yaml file the port no. for targetPort is 8080
On running hasura ms logs -n user ui the react scripts start and says
starting the development server
I am not familiar with Hasura but if it has to match with the port where your React app is running, then port configuration must be 3000 since CRA dev server runs on this port.
Hi have this lib which runs a Jerry server on port 8001. Hi can I deploy it on GCloud so that the traffic hits the 8001 port, not the 8080 port?
What do you mean exactly by Google Cloud Platform?
If you are using the AppEngine Launcher you can change the port by editing the ini file directly:
C:/Users/username/Google/google_appengine_projects.ini
I am using Ubuntu 14.04 on my VPS, and I'm trying to run Apache Tomcat on port 80.
So, I changed the Apache2 ports.conf (and the default.conf in sites-enabled) to a different port, and server.xml for tomcat to point to port 80.
However, many a times, I get the default Apache2 page on port 80 (even after disabling the default site and even deleting index.html from /var/www/html). Refreshing a few times helped earlier, but starting today, that didn't help. So, I stopped the Apache2 service and yet, it still shows up.
Tomcat is showing up when trying to access the site with the IP address or with http://www.nurvsofsteel.com, but not with the domain name: http://nurvsofsteel.com
Please help...
I had a similar problem and found that it was actually Nginx that was running on port 80 and picking up the Apache default page! This post helped figure it out.
In your case, it might actually be Tomcat running on port 80 but just showing a different default page. Try running sudo netstat -l4np to check which process is listening at port 80
I was able to find the problem. I had accidentally edited the /etc/hosts in my local machine instead of on the VPS (both the usernames were same, and I'd forgotten that I was logged in to the VPS from another tab in my terminal).
On my Ubuntu 13.10 I have installed Apache and Tomcat. I am trying to get tomcat to work on port 80 with no luck at all. I have looked at using mod_jk following several online tutorials with no success. What I am trying to achieve is I have a webapp on tomcat running as the root application. Therefore the current url is www.example.com:8080. I also have apache which is on the url www.example.com. I want to be able to access files on the apache webserver for e.g www.example.com/somefile but also have my webapp running at the sametime on www.example.com. Please can anyone help.
You need to add url redirection to apache and check for the path in apache httpd.conf.
Check the path of the incoming request is just example.com then you rewrite it to example.com:8080.
The mod_proxy of apache should be able to do this for you.
http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html
Apache Tomcat by default runs on port 8080. Incase if you need to run it in port 80 you need to use JSVC which comes along with tomcat. If you have installed tomcat by downloading the binary version then jsvc will be available under
[tomcat_install_path]/bin/commons-daemon-native.tar.gz
you need to untar it and compile it. Compiling it is easy.
# ./configure
# make
once you have compiled it you will get the jsvc binary file which needs to be placed under the tomcat bin directory.
Then to start up tomcat with the help of jsvc follow the steps mentioned here
JSVC is the officially recommended way of starting Tomcat in port 80.
So I managed to solve this problem by Using Mod_Proxy. Editing the 000-Deafult.conf file in /etc/apache2/sites-enabled and adding the following lines:
ProxyPass /SomeUrl !
ProxyPass / http://localhost:8080/
The first line indicates what you don't want to proxy and the second one indicates what to proxy.In this case forward the ROOT app of Tomcat at port 8080 to the root of the Apache web server
Also edited the server.xml file in /etc/tomcat7 and added the following
<Connector port="8080" protocol="AJP/1.3" proxyName="www.mydomain.com" proxyPort="80"/>
I have installed Jenkins on my Ubuntu 12.04 desktop machine using this guide:
https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
I also needed to follow this guide:
http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu
From my other machine (mac laptop) I now try to access Jenkins through safari:
http://192.168.1.100/jenkins
where 192.168.1.100 is the ip address of my desktop machine but I get an Error 404. I have also tried:
http://jenkins
but nothing happens. What am I missing?
The Jenkins service is running on my desktop PC:
service jenkins status
...
Jenkins Continuous Integration Server is running with the pid 3713
And if I enter: localhost:8080 in a browser on my desktop pc I get the jenkins web interface.
PROBLEM SOLVED:
I have followed this guide:
http://www.zzorn.net/2009/11/setting-up-hudson-on-port-80-on-debian.html
and it now works.
I had the same problem but not using Apache, rather only Jenkins on Ubuntu
I solved it by replacing HTTP_HOST=127.0.0.1 with HTTP_HOST=0.0.0.0 on /etc/default/jenkins
Jenkins is set to listen on port 8080 by default,
so you should point your browser to:
http://localhost:8080/
(or, in your case: http://192.168.1.100:8080/ )
EDIT:
If still not able to connect, you may wish to check your firewall settings.