top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Deploy a website downloaded from internet using wget (Tomcat 8.0 RC)

+2 votes
149 views

I downloaded a website say "test.org" using wget utility. Now I want to deploy in Apache Tomcat 8.0 RC. That I have done it.

But I want to do in this manner that I want to access "test.org" locally from my browser as if I am browsing on the internet because links in the test.org refers to itself. Because when I click any link it goes to
Internet and not to my locally saved website.

Please help

posted Sep 17, 2013 by Naveena Garg

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Why not create a local copy with the links converted? Take a look at
http://stackoverflow.com/questions/6348289/download-a-working-local-copy-of-a-webpage

answer Sep 17, 2013 by Satish Mishra
0 votes

You should be able to edit your hosts file by adding a line like 127.0.0.1 test.org, which will override the dns lookup to test.org's true IP address.

See http://en.wikipedia.org/wiki/Hosts_file for the location of the hosts file on your platform.

answer Sep 17, 2013 by Satish Mishra
Similar Questions
0 votes

I am trying to find out through registry checking whether or not Apache Tomcat 9.0.8 is already installed or not. If the below registry is not there, then my program installs Apache Tomcat 9.0.8 installer otherwise it moves on to other installation and completes. It's kind of prerequisite check program.

HKEY_LOCAL_MACHINESOFTWAREApache Software FoundationTomcat9.0Tomcat9

However, everytime program just proceeds to install Tomcat despite it is already installed? Am I checking wrong registry?

+2 votes
in mycase of tomcat error on ubuntu 14.04 too many files open, 
even though limit is 8096, proc limit says 4096. why ? any body?          
ranjan@ubuntu:~$ cat /proc/22897/limits          
Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds     
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        0                    unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             56045                56045                processes     
Max open files            4096                 4096                 files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       56045                56045                signals     
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0     
Max realtime priority     0                    0    
Max realtime timeout      unlimited            unlimited            us     
ranjan@ubuntu:~$ sysctl -a |grep file     
sysctl: permission denied on key 'fs.protected_hardlinks'     
sysctl: permission denied on key 'fs.protected_symlinks'     
fs.file-max = 1426057     fs.file-nr = 8096       0       1426057     
sysctl: permission denied on key 'kernel.cad_pid'     
fs.xfs.filestream_centisecs = 3000     
0 votes

Upgrading from tomcat 6.0.35 to 6.0.36 causes a simple jsp page to require about 20 minutes to load.

We have two clients that are running in an IBM mainframe USS (Unix System Services) environment and when they upgraded from tomcat 6.0.35 to 6.0.36, the simple jsp page in our webapp takes up to 20 minutes to load into the web browser. We have other clients that are successfully running 6.0.36 in
the USS environment. So it is a somewhat isolated issue.

I looked over the 6.0.36 change log at
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html#Tomcat%206.0.36%20%28jfclere%29,
but nothing jumped out at me as to which change may have caused the issue.

Since I am not a tomcat expert, I am asking for help on how to diagnose this issue.

Are there certain logging options that could be enabled?

0 votes

I have built a rails application with jruby. Since I have no experience with deploying a rails application in a production environment, I have spent some time doing a manual deployment on a linux server with tomcat6 as application server.

In essence, I have made a war file of the rails application with help of the warbler gem and deployed that on the linux server. I managed to get it up and running, but not yet exactly as I need it to be.

I have still some configuration issues. I hope you can help me or point me to the right place, since it may be a tomcat question. But I assume there must be some rails/tomcat expertise among the members of this group...

The point is, the URL in the development server is localhost:3000/invoices (using rails server)
The URL in the tomcat production environment is localhost:8080/rails/invoices

I can't seem to figure out how I can change the port and the document root (/invoices instead of /rails/invoices) in tomcat.

Any suggestions?

+1 vote

I have one .WAR to routinely deploy across various Tomcat Instances on different servers.

I believe FarmWarDeployer can only be used within a cluster. From what I understand, a cluster will require a HTTPD server with a mod_jk configured. Would anyone know of a way to achieve this without the need to configure a cluster? We have no desire to change traffic routing to go through an HTTPD as our load balancer handles traffic fine as it is. Ideally, i'd also like the context.xml to be distributable, so changing on one instance will update on all others...but I suspect this will require a cluster configured.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...