Software :: Apache2 And Tomcat6: Different Virtualhosts "mappings"
Jan 7, 2011
I succesfully integrated apache2 and tomcat6 using Ubuntu 10.10 server. The deal is that I can't use different Virtualhosts mapped to different tomcat projects. All tomcat "projects" are in /var/lib/tomcat6/webapps/. I couldn't configure apache virtualhost to use a project different than ROOT (/var/lib/tomcat6/webapps/ROOT/). All HTTP requests are redirected to /var/lib/tomcat6/webapps/ROOT/.
[Code]...
View 5 Replies
ADVERTISEMENT
Jan 11, 2011
I am trying to setup Ubuntu with Apache2+Tomcat6. I can get the site up and running, however when I have a jsp file it does not execute, instead it just prints the full jsp to browser.
I am checking if there is a configuration issue that may be missed.
sudo /etc/init.d/tomcat6 status # shows fine
/etc/apache2/sites-available has a file for my site containing valid DocumentRoot
/home/user/sitename/webapps/examples
/home/user/sitename/webapps/examples/jsp
/home/user/sitename/webapps/examples/jsp/sample.jsp contains below text
<%= "hello" %>
When above page is visited in browser, it shows full html tags instead of displaying the output. It displays static pages fine.
View 1 Replies
View Related
Aug 26, 2010
I would like to know if it is possible to have a key mapping (using loadkeys) that will directly execute a command. I want to have a key to change volume with amixer that works when top, vi, etc.. is open.
View 2 Replies
View Related
Aug 12, 2010
I've added the following to my .vimrc:
Code:
function CommentLines()
:'<,'>s/^///
[code]....
View 1 Replies
View Related
Nov 10, 2009
following situation and configuring authentication for Windows users on my CentOS clients please:IHAC WIN2003 R2 Domaincontroller with ALL my users and groups maintained there. For Usermapping (SID to UID/GID) I want to use IMU which is included with WIN2003 R2 srv and extends my Active Directory schema for UID, GID, NIS Domain etc. I want now authenticate my Windows users on my CentOS clients via their "domainnameusername" and passwords on the CentOS clients.
I also have a NAS server which has usermapping integrated and resolves the Windows SID's to the UID/GID's configured within the IMU schema extensions. Now I have no idea to setup my CentOS clients to use winbind, PAM and LDAP (IMU supports LDAP queries for UID/GID resolving) WITHOUT needing any Samaba Server or functionality.
* Do I need to configure the smb.conf file because my usermapping is done on the NAS Server and I want to resolve my Windows Users/Groups UID/GID's from IMU via LDAP?
* Do I (just) need to Join the AD (2003 native) or even using Kerberos with generating ktpass.exe keytab files (what is needed/recommended and what is the difference?) Can I authenticate the users without using Kerberos?
For e.g. my username is "domainuser_a" and within the IMU the UID is set to "12345", I don't want Samba/winbind to do usermapping again based on the configured values in the smb.conf file. Some hints would be really nice for me to understand how exactly it works and what is needed...
View 1 Replies
View Related
May 19, 2011
I'm just trying to do simple name-based virtual hosting (different domains/content, same IP).
What I've done is uncomment the "NameVirtualHost *:80" line in listen.conf. Then I have one file "domain.conf" in vhosts.d/ with:
Code:
<VirtualHost *:80>
ServerName www.domain1.com
DocumentRoot /srv/www/htdocs/domain1
<Directory "/srv/www/htdocs/domain1">
[Code]....
View 9 Replies
View Related
May 12, 2010
I have 5 websites running in a reverse proxy environment.On main server I am getting this error
Code:
NameVirtualHost *:80 has no VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[code]...
View 5 Replies
View Related
Jun 6, 2010
I am using the virtualhosts feature of Apache web server to host multiple domains on a single web-server. Is it possible to have different settings for php for different domains?
For eg:- I have mydomain1.com and mydomain2.com hosted on the same server. I want php scripts of mydomain1.com to connect to database but prevent database access for scripts of mydomain2.com. There are many php functions that I want to restrict for mydomain2.com.
View 5 Replies
View Related
Mar 16, 2010
I am new with Linux but really be interested in it. I would like to ask that if it is possible to make each VirtualHost only controllable by a specific and different user? If so, how to?
View 3 Replies
View Related
May 12, 2010
I have 5 websites running in a reverse proxy environment.On main server I am getting this error
Code:
NameVirtualHost *:80 has no VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[code]...
View 11 Replies
View Related
Nov 19, 2010
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 9 Replies
View Related
Dec 9, 2009
I am getting this error
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80
no listening sockets available, shutting down Unable to open logs failed!
also what is 68.178.232.100
View 1 Replies
View Related
Sep 16, 2010
I'm a bit of a Nooob to Virtual hosting. On my internal network 192.168.1.x I have a dns server running bind9 My DNS / web server is 192.168.1.3 I have succeeded in getting [URL] to resolve and it goes to my web page in /var/www/ Now I want to get say [URL] to go to /var/www/music/
1. What's the best way to go about this?
2. Can I configure it using webmin or do I just do it the old fashioned way through a terminal?
3. I tried virtual hosts via the following method
Added to /etc/apache2/sites-available/default
NameVirtualHost 192.168.1.3:80
Then created
/etc/apache2/sites-available/music.7rocks.com
<VirtualHost 192.168.1.3:80>
ServerName music.7rocks.com
ServerAlias music.7rocks.com
Then
[Code]....
View 4 Replies
View Related
Jun 2, 2011
I've been for a while trying to configure my apache to host 5 domains as virtualhosts in the same IP address, but seems that neither one makes it through... it always takes first one, because it is the default:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin xxxxxxx@xxxx.net
[code]....
As you can see I tried the ServerName with the http://, in quotes, without it...
View 11 Replies
View Related
Dec 31, 2009
I have installed Tomcat6 succesfully from Yast. Now im wondering where is catalina.sh file located ?
Tomcat is running fine, but i'm needing that startup script for deploying web service directly from Netbeans IDE.
The default init script is found from /etc/init.d/tomcat6, so is catalina.sh included to this installation ?
I'm using Opensuse 11.2
View 4 Replies
View Related
Nov 12, 2010
why i can't access the Tomcat6 default website after i do the install ?
Code: ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://10.2.3.189/
The following error was encountered: Connection to 10.2.3.189 Failed
The system returned: (111) Connection refused
Code:
Setting up authbind (1.2.0build3) ...
root@SSV:~# /etc/init.d/tomcat6 restart
* Stopping Tomcat servlet engine tomcat6 [ OK ]
* Starting Tomcat servlet engine tomcat6 Using CATALINA_BASE: /var/lib/tomcat6
[Code].....
View 6 Replies
View Related
Dec 1, 2009
I've been trying to figure out how to access tomcat6 pages outside of the computer actually running the tomcat6 server. I can access the tomcat6 web pages fine on the computer running the server, but I can't seem get to it on another. I'm probably not setting it up correctly or something, but I've attempted to access the tomcat6 server by following this form:
[URL
Did I not set up the tomcat6 server correctly?
View 1 Replies
View Related
Mar 16, 2010
I'm trying to do a standard mod_jk setup--get apache to forward requests to Tomcat. I must admit that I'm not so familiar with the details of mod_jk, but I got this working before when I had used tomcat 6 directly from apache's website, but now that I've switched to the version in Ubuntu's repositories I can't get it working.
The log for mod_jk says:
Code:
[Mon Mar 15 23:59:41 2010] [5575:3004840816] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13_worker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Mon Mar 15 23:59:41 2010] [5575:3004840816] [error]
[Code].....
View 1 Replies
View Related
May 6, 2010
I am new to ubuntu server. Currently I am running Ubuntu 9.10 server edition. I installed tomcat6 downloaded from apache site and started. But can't run the war file and cant even shut it down. I am running tomcat with default port 8080 and 8005 for shutdown port. I have reinstalled tomcat over and over again. Ubuntu desktop version is running on my pc, everything fine there.
View 2 Replies
View Related
May 3, 2011
I have ubuntu 10.04LTS server. Open jdk and tomcat6 installed from synaptic package manager. I run different war files on tomcat6. I downloaded apache-continuum-1.3.7.war. I followed the instructions on apache continuum web site. [URL]
[Code]...
View 1 Replies
View Related
Feb 16, 2011
When i start tomcat6 (on a SLES 11 box) two times without a stop in between, rctomcat6 status results into dead state.
I checked the rctomcat6 start script, in this case when the tomcat6 is already running and a rctomcat6 start is done, it display a msg that "process already running", but it continues in the start function further down & executes the TOMCAT_SCRIPT(dtomcat6) script with the start argument. And after that pid in the tomcat6.pid file gets changed but the process keeps running with the old pid, and hence when we do a rctomcat6 status, it results into dead state(bcoz it doesn't find any process running with that pid).
I think it shouldn't execute the TOMCAT_SCRIPT in this case, so in case when checkpid is success(in start function), i put an exit after the echo msg " process already running", this solves the problem, but is this the correct solution ?
function start() {
echo -n "Starting Tomcat ($CATALINA_BASE)"
if [ -f "/var/lock/subsys/${NAME}" ] ; then
if [ -f "/var/run/${NAME}.pid" ]; then
[Code]...,
View 1 Replies
View Related
Jan 6, 2010
I have newly installed Ubuntu server 9.10 in my server machine.And it has tomcat6 in itself.My friend have built a Java software in Fedora ,and he wants to move it to the new server.But problem is the directory structure is different between two systems.He has to either change his directory setting in his software or change the default tomcat6 ROOT directory. But I have not find any configuration file can do this job(change the tomcat default ROOT directory ).
View 3 Replies
View Related
Aug 4, 2010
I've installed Sun Java, tomcat6 and tomcat6-admin on 10.04 server 64-bit. By default, tomcat is configured to run as the tomcat6 user. Everything runs just fine on tcp/8080 as initially configured. Modifying the connector port in /etc/tomcat6/server.xml to anything below 1024 (e.g. port 80) results in:
SEVERE: Error starting endpoint
java.net.BindException: Permission denied <null>:80
This all begs the question... do you *really* have to run tomcat as root to bind to a well-known port? I.e. is there really no way for tomcat to start as root, bind to a privileged port and then drop privs?
View 6 Replies
View Related
Sep 15, 2010
hph@ubuntu:~$ sudo service tomcat6 stop
* Stopping Tomcat servlet engine tomcat6
hph@ubuntu:~$ sudo service tomcat6 start
* Starting Tomcat servlet engine tomcat6
Using CATALINA_BASE: /var/lib/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /tmp/tomcat6-tmp
[Code]...
View 1 Replies
View Related
Jan 17, 2011
I'm using tomcat6 on Ubuntu 10.10. How can each application run as a different UNIX user?
View 3 Replies
View Related
Jan 25, 2011
I've just installed Ubuntu 10.04 LTS Server with LAMP. Tomcat6 appears to function properly. BUT, I cannot gain access to the 'manager webapp'. I've updated tomcat-users.xml:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
[code]....
but no matter what I use as username/password, I am unable to get in.
View 3 Replies
View Related
Nov 19, 2010
I have suse10 64bit and I was setting up SVN server on it. After all required setup while reloading apache2,its giving the error:
Code:
httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 6 Replies
View Related
May 26, 2011
i installed tomecat6 in Linux server i deployed xyz.war file and jkmonunt in Apache this is for out side usage recently i deployed one more war abc.war i din't mount in apache this is internel application usage purpuse in my application i tried to call this abc.war (http://X.X.X.X:8080/abc/abc.war) but i am unable to access this folder i checked the iptable rules i gave access permission in 8080 port.
View 2 Replies
View Related
Apr 15, 2011
alright I have seen some threads on this but they are all old and seem to predate the "wisdom" of the "all" architecture on all the bloody ubuntu packages.
I went to the tomcat website which doesn't even have deb packages. Then I thought to search the ubuntu package repository, nothing seems to have i386 packages for me to install and then get the libs with getlibs. I HAVE to have a 32bit version of tomcat to run orkweb so I can record my phone calls on my voip line.
what would be really great is if anyone has or knows how to build a 64-bit war file for orktrack and orkweb since I have the source code
View 1 Replies
View Related
Mar 11, 2011
Installation of SUSE 11 server now when I try to configure apache2 (opening port 80) I get a "cannot adjust apache2 service" error??? Can anyone shed some light on this.
View 1 Replies
View Related