Apache vs Tomcat: Hide port in my URL

0

Hello, my server currently runs an Apache together with Tomcat. I am a bit new to this, what I really want is to hide or remove the port on my web pages hosted on the server. That is, it is currently as: dominio:8080 and I want it to appear: dominio.com . Rambling on the web, I find that Apache runs on port 80 and Tomcat in 8080 that's why the port comes out. I read that one way to solve these is by configuring a proxy. I did it in the following way: I added this line in my file httpd.conf in my Apache

ProxyPass / http://dominio.com:8080/

It works and everything but apparently only if I type the URL. If I search my page in Google for example, it comes out again with port 8080 :(. What would be the next step or what I need to configure?

Thank you very much

PD: connector of my port 8080 of my Tomcat:

 <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" /> 
    
asked by RicarlpDvelop 23.06.2017 в 20:36
source

2 answers

2

From what I understand, your page in its entirety works correctly.

If the problem is the Google cache, do not worry about it, it will be refreshed over time.

If you want you can ask Google to re-index your pages, for that I recommend you read the following:

Request that Google crawl and index URLs

  • Request a browse (or browse and process) of a URL with the tool Browse as Google , or select a recent scan of the table that meets the above requirements. Check that the page is displayed correctly in the scan, because if the scan tool can not access the page or it is not displayed completely, it may not be classified correctly or Google can not track it.

  • Click Request indexing next to the scan in the browsing history table. If the request function does not appear next to the scan, it means that it does not meet the above requirements.

  • 3.Select if you want to only crawl this URL or if you also want to track your direct links:

    • Select Crawl only this URL to send the selected URL to Google to be re-crawled. With this method you can send up to 500 specific URLs in a period of 30 days.

    • Select Crawl this URL and its direct links to send the URL along with the other pages to which it directly directs the URL to re-track them. You can send up to 10 requests of this type in a period of 30 days.

    4. Click Send to add your request to the queue.

    5. It is not guaranteed that the URL will be crawled again or that it will be done immediately . It usually takes several days to accept a request. Please also note that we can not guarantee that Google will index all the changes made, since to update the indexed content depends on a complex algorithm.

    I hope it helps you!

        
    answered by 30.08.2017 в 15:32
    0

    You must bear in mind

  • If Apache Web Server and Tomcat are on the same server port 8080 should not be exposed outside the server, if they are on separate servers, you should allow the connection only from the IP where Apache Web Server is located, both should be achieve with the system's firewall, this is how the proxy will be in charge of obtaining the correct website only with access to the URL through port 80.
  • Request a new indexation to the Google engine.
  • Patience, the indexing takes time to see the changes, however, since the port is not exposed, the Google indexing engine can only find your website through port 80.
  • answered by 30.08.2017 в 18:31