Configure Domain And Subdomain On Tomcat
May 20, 2009
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 0 Replies
ADVERTISEMENT
Apr 29, 2008
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 7 Replies
View Related
Nov 14, 2007
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 4 Replies
View Related
Jul 24, 2007
I have problem,
subdomain.domain.com - not working
www.subdomain.domain.com - working
When I creating new subdomain: subdomain2.domain.com - all working ok, I have problem only with this one domain.
I deleting domain.com, deleting dns zones, deleting account, adding domain to other account - all not working for subdomain.domain.com
View 4 Replies
View Related
Feb 22, 2007
I am running IIS 6 for testing & developing web sites offline before uploading the.But i am having little problem reagarding name server and how to configure sub-domain in name server,
View 2 Replies
View Related
Oct 24, 2008
what are the differences?
View 9 Replies
View Related
Feb 25, 2008
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 1 Replies
View Related
Apr 8, 2009
i have just purchased a vps with 1 ip address now i just want one website on the vps can how to configure direct admin to work with the domain.
View 1 Replies
View Related
Dec 17, 2014
I have hired two servers for plesk and I have the mail configured in one server and the website in another one, it all seems to work fine except for a problem.
When the server where the website is tries to send a message through a smtp account it can´t send it, it seems to be looking for the mail server in the same server where the website is instead of look for it in the other server.
How to configure this so it works correctly?
View 3 Replies
View Related
May 2, 2008
i wanted to create secure.mydomain.com . i can create this either as a separate domain or as a subdomain for mydomain.com.
which one is preferred and why?
View 1 Replies
View Related
Mar 14, 2007
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 3 Replies
View Related
Jul 19, 2007
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 7 Replies
View Related
Feb 13, 2009
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 4 Replies
View Related
Jun 13, 2008
How can I park a domain on subdomain in PLESK (like cpanel add-on domain)
View 3 Replies
View Related
Apr 18, 2008
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 2 Replies
View Related
Nov 21, 2007
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 13 Replies
View Related
Jun 28, 2007
How can I open a domain that is not in my server in one of my subdomaines?
(when we go to my subdomain open the doreign domain and url not redirect)
I have Cpanel + WHM
View 3 Replies
View Related
Jul 12, 2007
I created a new cpanel account subdomain.domain.com
Sometimes i goto [url] on my browser, it changes to www.subdomain.domain.com
I want to disable 'www' for some 'xml' script reason.
How do I do that?
View 12 Replies
View Related
Sep 22, 2007
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 3 Replies
View Related
Apr 22, 2005
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 0 Replies
View Related
Jun 22, 2008
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 5 Replies
View Related
Jan 23, 2007
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 7 Replies
View Related
Nov 18, 2014
I would like to rewrite mysite.com to www.mysite.com.
However, if the request is a subdomain (i.e. blabla.mysite.com), then it should not rewrite.
I believe this gets me close, but it will not differentiate the subdomains (i.e., blabla.mysite.com).
View 5 Replies
View Related
Oct 21, 2007
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 14 Replies
View Related
Nov 30, 2007
I want to host my site on my Dreamhost account for the IP benefit but I need to keep the high bw files on my dedi.
Anyone know how to set that in Dreamhost? And can you point how i will set the subdomain in CPanel on my server?
View 0 Replies
View Related
Dec 1, 2007
I just remove subdomain I was use it for time and when I remove it from cpanel it now work as a subdomain for my site.
View 0 Replies
View Related
Sep 10, 2007
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 3 Replies
View Related
Jun 7, 2013
Switched from NGINX to Apache2 and now having challenge getting my subdomain s to work properly. Everything worked fine w/ NGINX - so I don't think this is related to my DNS or hosts file setup.
PROBLEM: Calls to dev.domain-name.org are going to www.domain-name.org.
I have tried many different changes to the conf files... NameVirtualHost changes, VirtualHost changes... I can't count how many times I have restarted Apache now.
Here is my setup:
ports.conf
-----------
Listen 80
Listen 443
NameVirtualHost 96.126.xxx.xxx:443 (xxx'd out for privacy on forum)
NameVirtualHost *:80
within sites-available and activated and linked in sites-enabled:
[Code] .....
View 1 Replies
View Related