Configure Domain And Subdomain On Tomcat
I have configured Apache+Tomcat on Linux server. I have configured 50+ domains not problem is that sometime when i configure new domain and restart the service and access the url http://domain.com i get following error ----->
HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.
but when i access same url with file like [url]i able to access that url and working fine.
same problem for subdomain also [url]same error but [url]is working so can anyone tell me what is the exact problem and how to solve this problem.
Note:- Other domains are working fine this problem is only with 2-3 domains and subdomain and secondly i have also set DirectoryIndex index.html index.jsp index.php
Please check my server.xml and httpd.conf ------->
<Host name="domain.com" appBase="/home/domain/public_html">
<Alias>www.domain.com</Alias>
<Context path="" reloadable="true" docBase="/home/domain/public_html" debug="1"/>
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>
</Host>
<VirtualHost 192.168.1.1:80>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /home/domain/public_html
ServerAdmin webmaster@domain.com
JkMount /*.jsp ajp12
JkMount /*.jsp ajp13
</VirtualHost>
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Configure Subdomain On Another Server
I have 2 domains as follows: Domain1 on Server 1 = www.domain1.com Domain2 on Server 2 = www.domain2.com (has a forum) How can I configure subdomain.domain1.com, but to be on Server 2? The idea of this exercise is to feel the visitors when they browse the forum that they are on same website/server.
View Replies!
View Related
Plesk Tomcat Error When Deleting Domain
I am running Plesk 8.1 for Linux and am trying to delete a domain via the control panel. The following error occurs: ERROR: PleskUtilException tomcatmng is failed --remove-service --vhost-name=domain.com 0: /usr/local/psa/admin/plib/utilmng.php:57 utilmng->call(string 'remove-service', array) 1: /usr/local/psa/admin/plib/tomcatmng.php:44 tomcatmng->remove_service(string 'domain.com') 2: /usr/local/psa/admin/plib/class.DSTomcat.php:226 DSTomcat->delete() 3: /usr/local/psa/admin/plib/class.PhDomain.php:315 PhDomain->reset(integer '0', boolean true, boolean false) 4: /usr/local/psa/admin/plib/class.BsDomain.php:297 BsDomain->reset(integer '0') 5: /usr/local/psa/admin/plib/class.BsDomain.php:291 BsDomain->delete(integer '0') 6: /usr/local/psa/admin/plib/class.BsDomain.php:530 mdeleteDomains(array) 7: /usr/local/psa/admin/plib/class.Manager.php:353 Manager->removeDomains(array) 8: /usr/local/psa/admin/htdocs/domains/domains.php3:209 Does anyone know how to fix this? Some Plesk users may have experienced this and I'm hoping could shed some light.
View Replies!
View Related
Configure One Domain On Multiple Servers ...
I am so lost I am using both plesk for linux 8 and plesk for windows 8 I am trying to figure out how to have one master dns server for all domains regardless of which server they are hosted on. So if I have ns1.mydomain.com and ns2.mydomain.com I want to have it across the board on all servers is this possible in plesk and how would I go about doing this.
View Replies!
View Related
Domain/subdomain
Can I have a primary domain - www.sample.com - point to another primary domain - www.sample.asn.au - but then have the entry point for that domain be a subdomain - www.ccc.example.com? If the primary domain is parked somewhere else, doesn't it mean that all the subdomains will be too? Or do I use a 301 on the primary domain to the .asn.au site? But does that then redirect all the subdomains too?
View Replies!
View Related
Parking A Domain Under A Subdomain
I have 2 domains ie. red.com blue.com. They are both on seperate servers. I want red.com to be a subdomain for blue.com. I went ahead and created an A host for red.blue.com, I then created a virtualhost and everything is working, I can pull up red.blue.com and it pulls up the same data if I were to go to red.com. Here is my issue. I want to have red.com pull up red.blue.com by default so blue.com gets credit for traffic, I am moving red.com and moving it all into blue.com. Hopefully this makes sense. Also, I want to make sure nothing breaks my current search engine results.
View Replies!
View Related
Subdomain Must Go To Domain/folder
If I have domain.com going to /html/ on my server, how do I get blog.domain.com to go to /html/blog ? and I want the url to SHOW as blog.domain.com in the address bar. seems like it should be simple, but I cant seem to find the answer! is it an htaccess thing, or a cname thing, or both?
View Replies!
View Related
Add-on Domain And Subdomain
Let's say my domain, for which I have shared hosting, is www.mydomain.com I have also registered the domain www.yourdomain.com My hosting has cPanel I add www.yourdomain.com as an add-on domain. Inside my root folder the folder /public_html/yourdomain/ is created. When I create the subdomain subdomain.yourdomain.com, the folder /public_html/subdomain/ is created instead of /public_html/yourdomain/subdomain/ Can I assign the /public_html/yourdomain/subdomain/ folder to be the root of subdomain.yourdomain.com? e.g. I have the file image.jpg at /public_html/yourdomain/subdomain/image.jpg and it's accessed from subdomain.yourdomain.com/image.jpg Is this possible? Having a lot of folders directly under /public_html/ would get annoying for me.
View Replies!
View Related
Subdomain Point To Another IP/domain
I would like to create a domain which will point to another website/IP. Something like this: DomainA.com has subdomain1.DomainA.Com and subdomain1.DomainA.com point to DomainB.com So that a file DomainB.com/abc.html Can be access via subdomain1.DomainA.Com/abc.html
View Replies!
View Related
Parking A Subdomain On Another Domain
I want to park a subdomain on a domain like below. subdomain.aaaaa.com parked on xxxxx.com if my visitor opens subdomain.aaaaa.com he will actually see xxxxx.com without know that they are seeing xxxxx.com I had done this before using cname settings few years ago through cpanel but i dont remember that anymore.
View Replies!
View Related
Mapping An External Domain To A Subdomain?
I have a website where users can sign up and create a site. They can access their website by typing username.example.com. However, I would like to add to this the ability to buy a domain name and point it to username.example.com so example.com/guestbook.html would translate to username.example.com/guestbook.html (external domain and associated user are mapped in the database) Do I need my own DNS server for this or is there a simpler solution? Also, how should the database lookup be performed for this to work?
View Replies!
View Related
Domain Root And Subdomain Structure
I am a bit confused about domain and sub-domain setup for my website. I have Wordpress and VBulletin Forum on my website like this: /www/mywebsite/wordpress /www/mywebsite/vbulletin Right now, my domain points to this folder: [url] I have a .htaccess file there which redirects it to the wordpress folder i.e. Redirect permanent /index.php http://www.mywebsite.com/wordpress DirectoryIndex index.php But, I would like my domain name point directly to the wordpress folder like this: [url] But the problem when i do that is my "VBulletin" forum get's messed up because then: [url]----------resolves to---------> [url] I m thinking to resolve this issues, I will have to add a subdomain for forums like this: [url]-> [url] But I am wondering if I do that, won't it fail again, because it will do this: [url]-----will resolve to-----> [url]
View Replies!
View Related
Subdomain To Main Domain Moving
I have a domain name as per my sig. I am also creating a subdomain totally in contrast with that site below. My primary domain has one page on it so i would like to: a) delete the one page on my primary domain b) Make the contents of my subdomain my primary domain. e.g my domain is www.info-peep.com, my sub will be example.info-peep.com........i would like to make example.info-peep.com : www.info-peep.com......that make sense, as really the sub will be my main site. Basically wanting to transfer the contents of my sub to my primary. So when people click info-peep.com, it will be the sub's site. Another thing to note is that i am using RVsitebuilder (WYSIWYG) that my web host provides. Also BEAR IN MIND the WYSIWYG editor does not allow me to move pages (sucks) or to copy the page contents.
View Replies!
View Related
Htaccess - Moving Site From Subdomain To New Domain
I have what I think is kind of a unique situation with a site move and Google is not turning up an answer that seems to work. My site is currently in this format: www.mydomain.com/site/file.html And I am "moving" it but also switching from html to php, so the same file would be found at: site.mydomain.com/file.php I want to redirect users going to the old pages to their equivalent on the new site, however this is a little bit of a problem because this is a normal subdomain - it is the same directory as before but now there are php versions of the html files. Right now I have all of the http files redirecting to their php equivilents, but I don't believe this is a desirable solution. Also it creates a problem when people go to www.mydomain.com/site (not indicating a specific file; just the subdir root) because I have www.mydomain.com/site/index.html redirecting to www.mydomain.com/site/index.php. Quite a mess. My first option is to put the redirects in the htaccess file on the "old" site. But is this a problem because there are over 500 pages on the site? Does it create a heavy server load because any requests force the server to serve a huge htaccess file? The next alternative seems the most preferable although I'm not sure how to do it. It seems it could use wildcards so that anyone going to *.html gets directed to *.php or something like that. The only problem is that there are a small number of files that were removed completely and do not have php equivilants (about 5 or 6) and would need to redirect to the index.php in the root
View Replies!
View Related
Can Other Hosted Sites Be Access Through Your Domain/subdomain
I'm using a shared host that provides good service and support, but there's one major issue I discovered recently: Other sites hosted on their server are accessible through my domains and subdomain. For example: Account2 on their server can be accessed through: [url] [url] Host says: "Because everything is Name-based, apache decides what directory is going to be used based upon the name that is provided. However, because the username is valid, it treats it as a vaild URL and redirects it to your site. There is no security issue, as this is just the way apache’s configuration works." Is it really normal? Does the same happen on all apache servers? I think SE's would treat the other pages as mine, no?
View Replies!
View Related
While Add Subdomain/domain(while Cpanel Edit The Httpd.conf)
When cpanel edit the httpd.conf(to add subdomain/domain/etc) made a wrong. In the lines BytesLog /usr/local/apache/domlogs/domainorsubdomainname.com-bytes_log CustomLog /usr/local/apache/domlogs/domainorsubdomainname.com combined it breaks them as follows -- BytesLog /usr/local/apache/domlogs/domainorsubdomainname.com -bytes_log CustomLog /usr/local/apache/domlogs/domainorsubdomainname.com combined And httpd cannot start and failed.
View Replies!
View Related
How To Set Subdomain To Other Server, Domain In Godaddy, Server In Outside
i had searching in this forum and in google How to set Subdomain to other server, i had try some of methode but still not working, because i cant set A Name in godaddy, because i use other webhosting outside godaddy i just have ip address from my other server, i want subdomain to go this ip address, for example 10.42.1.21 what is your experience in godaddy, how to set Subdomain to other server, please give simple step by step dude
View Replies!
View Related
Installing TomCat
I've got a customer who would like to have TomCat installed in his hosting account. I've some question before doing it, it kindda scares me.. 1- I have apache 1.3. 2- I don't want every child process of apache to have an additional 15MB.. 3- I don't know a lot about Java... Is it as easy as «port install» it in my FreeBSD? Basically, I would really like to accomodate that customer but I also doesnt want to mess everything for a single customer.
View Replies!
View Related
Install Tomcat
in cPanel 11.24.4-R35075 I have installed tomcat using the manage plugin in whm now could anyone let me know how do i test it and what will be the webapp;lication directory for tomcat, Does the steps performed to install is inadequate?
View Replies!
View Related
Tomcat / Postgresql
I would like to install a tomcat application on my domain. Where do I upload the .war file and how can I manage the tomcat and access this application? I have root access to my Cpanel/WHM box. Also, I did apply a servlet already via WHM. Also, I need to restore my postgres backup file as well but its too big to be done via pgmyadmin. How can I go about doing this via command line? I'm aware of how to restore a mysql db via command line (1st create db in cpanel, 2nd run command in ssh). Never done so with a postgresql database.
View Replies!
View Related
Tomcat 404
I'm getting a 404 tomcat error on a domain after applying a servlet and restarting tomcat, httpd. I even disabled the htaccess file and removed the web.xml file from WEB-INF directory, restarted both services again. root@server [/home/user/public_html]# ls -lh total 168K drwxr-x--- 7 user nobody 4.0K May 10 11:27 ./ drwx--x--x 11 user user 4.0K May 10 11:19 ../ -rw-r--r-- 1 user user 3.5K Apr 13 17:10 admin.jsp -rw-r--r-- 1 user user 2.6K Apr 13 17:10 annunciAddConfirm.jsp -rw-r--r-- 1 user user 3.9K Apr 13 17:10 annunciAdd.jsp -rw-r--r-- 1 user user 2.6K Apr 13 17:10 annunciDeleteConfirm.jsp -rw-r--r-- 1 user user 3.2K Apr 13 17:10 annunciDelete.jsp -rw-r--r-- 1 user user 5.3K Apr 13 17:10 annunciEditListsConfirm.jsp -rw-r--r-- 1 user user 6.8K Apr 13 17:10 annunciEditLists.jsp -rw-r--r-- 1 user user 7.2K Apr 13 17:10 annunciExecuted.jsp -rw-r--r-- 1 user user 2.7K Apr 13 17:10 annunciModifyEditConfirm.jsp -rw-r--r-- 1 user user 6.7K Apr 13 17:10 annunciModifyEdit.jsp -rw-r--r-- 1 user user 3.2K Apr 13 17:10 annunciModify.jsp -rw-r--r-- 1 user user 2.6K Apr 13 17:10 blogOccasioni.jsp drwxr-xr-x 2 user user 4.0K Apr 8 15:47 cgi-bin/ -rw-r--r-- 1 user user 3.1K Apr 13 17:10 contatti.jsp -rw-r--r-- 1 user user 1.7K Apr 13 17:10 DBcaseAutomob.jsp -rw-r--r-- 1 user user 1.6K Apr 13 17:10 DBcerchiLega.jsp -rw-r--r-- 1 user user 1.6K Apr 13 17:10 DBpneumatici.jsp -rw-r--r-- 1 user user 1009 Apr 13 17:10 homepage.jsp -rw-r--r-- 1 user user 22 Apr 13 17:12 .htaccess drwxr-xr-x 2 user user 4.0K Apr 13 17:08 images/ -rw-r--r-- 1 user user 965 Apr 7 15:31 index.html -rw-r--r-- 1 user user 2.0K May 10 08:22 index.jsp -rwxr-xr-x 1 user user 562 Apr 8 16:24 jsptest.jsp* -rw-r--r-- 1 user user 1.1K Apr 13 17:10 login.jsp -rw-r--r-- 1 user user 2.1K Apr 13 17:10 logout.jsp drwxr-xr-x 2 user user 4.0K Apr 13 17:10 multimedia/ -rw-r--r-- 1 user user 27 Apr 13 17:10 phpinfo.php -rw-r--r-- 1 user user 133 Apr 13 17:10 prova.jsp -rw-r--r-- 1 user user 1.2K Apr 13 17:10 servGaranzia.jsp drwxr-xr-x 2 user user 4.0K Apr 7 15:31 style/ -rw-r--r-- 1 user user 4.7K Apr 13 17:10 style.css -rw-r--r-- 1 user user 1.1K May 10 08:21 templateFooter.jsp -rw-r--r-- 1 user user 6.2K Apr 13 17:10 templateHeader.jsp drwxr-xr-x 4 user user 4.0K May 10 11:26 WEB-INF/ Using Cpanel / Apache 2.2
View Replies!
View Related
Tomcat Fails
Not sure why, suddenly tomcat is failing tomcat has failed, please contact the sysadmin (result was "tomcat is not running"). I got that before and after running a forced cpanel upgrade. I restarted via command line as well. Its amazing that "tomcat has failed please contact the sysadmin" search yielded no results in wht here.
View Replies!
View Related
Apache Tomcat
I have installed red5 war version at my tomcat webapps directory which I have installed using easyapache 3, demos/porttester works great but I am unable to login to admin panel at [url] I get tyhe server address as well as username password panel but none of the passwords I try gets accepted, also in this type of installation I was unable to find register.html to create a login,
View Replies!
View Related
Installing Java/Tomcat
Rightnow OpneJDK 6 is already installed, I want to remove it and install Sun JDK6 and tomcat. There are many threads on the web discussing this topic, but every one says some thing different, so its getting confusing. Any one, who is running java hosting, please come ahead and help me. System info: CentOS 5.3
View Replies!
View Related
Moving From Jetty To Tomcat
I have a Java application that's currently running on a jetty server, and I need to move it over to our Tomcat server. I can get Tomcat to see and extract the .war file when it starts up, but the application isn't accessible. I suspect I'm missing something very basic. Besides dropping the .war file into Tomcat's directory (/usr/local/tomcat/webapps), what sort of configuration do I need to be doing? Would the extant configuration data be something jetty-specific?
View Replies!
View Related
Tomcat @ Cpanel Stopped
for some reason since 2 days ago tomcat stopped working by itself. i removed it and reinstalled it several times with no luck at all. it seems it has something todo with mysql connectivity, but the weird thing its working on php just fine even the test code its not working ....
View Replies!
View Related
Apache And Tomcat Integration
I'm setting up a web server that will only run jsp/servlet applications. It 'may' need SSL at some point. Is there any point to having apache installed and linking tomcat through apache. As running tomcat on port 80 seems ok with no problems!?! will linking apache to tomcat have any benefit?
View Replies!
View Related
Tomcat Jsp / 404
Could not opendir /usr/local/jakarta/tomcat/lib: No such file or directory HTTP Status 404 - /teste.jsp type Status report message /test.jsp description The requested resource (/teste.jsp) is not available. Apache Tomcat/5.5.25 I installed the tomcat(5.5.25) in Easyapache3 as informed in: Main >> cPanel >> Manage Plugins I applied the servlet, still getting 404 even after restarting apache. Applying servlet gave me this error ...
View Replies!
View Related
What Does Tomcat Deploy Do / GoDaddy
I am deploying my first Java web application on GoDaddy. Reading their documentation, it states a Tomcat redeploy occurs every morning at around 1:00 am. I thought I could get around waiting for this by moving up the compiled class files to the WEB-INF/classes directory. Thinking about this made me realize I am not 100% sure how deploying code works. Tomcat is my servlet container which means it handles the HTTP requests it receives and then displays the appreciate content based on the web.xml settings. With this understanding, I am not sure what the deploy does. Since I manually moved the classes files and Tomcat did not have to take a .WAR file and build the directory, is that the deploy? Do you think I need to wait for the redeploy even though I FTPd the class files? Also, if I FTP the web.xml file to Tomcat, do I need a redploy? I am guessing I do but to be 100% honest, I am not sure why.
View Replies!
View Related
RAM Usage With Tomcat
I'm maxing out on memory and am having trouble figuring out why. Can someone please tell me how to figure out what's using all the memory? When I list system processes in descending order of memory usage percentage, Tomcat is at the top of the list, but only with 0.8%. (Or does that mean 80%?) I am alloted 256MB of RAM and I'm only hosting a handful of sites, none of which are getting any notable traffic.
View Replies!
View Related
Deploy .war On Tomcat Server
I have installed Tomcat on a VPS trough a Cpanel addon module and i got my first client today. He wants do deploy his .war file. How can i do this? If i deploy on /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps he will have to access using http://server_name:8080/war_name/. How can i deploy and let him access using http://his_own_domain:8080/.
View Replies!
View Related
2 Tomcat Version On Single Server ?
I have a Linux(RHEL5) dedicated server.Tomcat version 5.x is running integrated with Apache and now i want to install tomcat 6.x integrate with apache without effecting older tomcat version. it will run as it is. How can i do this and if yes then how can i set tomcat home path for both versions. CATALINA_HOME=<Which path for both> and how to install it.
View Replies!
View Related
HP-UX Tomcat Refuses Connections After Boot
Right after booting from HP-UX PA-RISC, Tomcat refuses connections. Trouble Description: No startup error messages are logged and processes are up and running. Checking /etc/rc.log: ---------------------------- Starting Tomcat server Output from "/sbin/rc3.d/S998Tomcat start": ---------------------------- Using CATALINA_BASE: /opt/mediation/Tomcat5.5 Using CATALINA_HOME: /opt/mediation/Tomcat5.5 Using CATALINA_TMPDIR: /opt/mediation/Tomcat5.5/temp Using JRE_HOME: /opt/mediation/java/jre15_15002 /opt/mediation/Tomcat5.5/bin/catalina.sh[233]: touch: not found. ---------------------------- If Tomcat is manually stopped and restarted, it accepts connections.
View Replies!
View Related
Tomcat Virtual Hosts And Permissions
I am just getting started with my first Linux VPS account and am having a problem that I hope someone can help me with. I am setting up multiple client accounts that will each have access to Tomcat Manager on their own domain so that war files can be deployed to the home directory of the respective account. I was able to get Tomcat Manager going for each domain, but when I try to upload a war file, I get a permission denied error. However, I don't get this error for the main VPS account. What is the best way to resolve this? Is there a way to link a client account user to an instance of Tomcat Manager? Or do I have to assign the home directory of the account to a group that is common to the tomcat user (assuming that is what Manager is running under)? Or is there another option that is entirely better? Just looking for some guidance before I hack up my new account too bad.
View Replies!
View Related
Change Default Path In Tomcat ?
I have Linux server Apache with Tomcat.How can i change DocumentRoot for Tomcat or set default page for Tomcat index.jsp or my.jsp or index.php because i want to use 301 redirection. So please guide me how can i change default page or change default path.
View Replies!
View Related
|