virtualhost

Aliases for different contexts with Apache Tomcat 5.5

I am using tomcat 5.5 and I want to do the following: If two web applications are deployed (let them be foo and bar) I want to be able to access them both with relative paths and by aliases. localhost:8080/foo -> foo and foo.example.com -> foo and respectively localhost:8080/bar -> bar and bar.example.com -> bar If I use dif...

DNS Apache redirect for domain names held elsewhere

An external company holds the name servers for several domains for a web site which I host. I host the site and have a vhost setup with the domainName and domainAlias for: www.example.com admin.example.com The external domains also need to redirect to the site: www.somedomain.com www.anotherdomain.com What must I add to my vhost...

How to configure Apache to have two symfony projects in the same domain (without using subdomains)?

Hi! I'm trying to configure Apache to have to different symfony projects (each with his own installation of the framework) under the same domain, but I can't get it to work using folders. This is what I would like to have: mydomain.com/projectone/ mydomain.com/projecttwo/ I can make it work using subdomains, but is not the preferre...

How to start and stop a JBoss server from Maven, bound to a different address than localhost?

Hi, I am working on a legacy Java Enterprise server project, and currently I am trying to set up nightly builds. We are using Maven 2, JBoss 4.2 and Bamboo. The idea is that we have a Bamboo agent on one of our dev servers, and the Maven build is configured to hard deploy the resulting .ear file, then restart the server. (We can't use s...

tomcat 5.5 setting up context path with virtual hosts (non webapps directory)

Hi. I have been a web developer for a couple of years (some ASP, mostly PHP) and have recently taken on Java/JSP in the last two years. The one thing I have tried repeatedly but continue to fail to wrap my head around is the way to setup a working JSP application in another location that is NOT the webapps folder. Rocking my applicati...

Apache Caching within diffrent VirtualHosts

I have two virtual hosts within my apache config, one for live and one for preview. In the moment there is no setting about cache and for all live customers, this is fine. But the preview customer with a lot of changes have some cache problems within the last weeks. I am not sure if this is an IE problem or not - anyway, I would like to ...

Ruby on Rails user generated subdomains - do I need a Dedicated Virtual Host?

I'm successfully running subdomains on my mac OSX as outlined by Robby on Rails. I'd like to follow the example code below but I have no idea where to start. How do you edit a DNS setup? Do I need to have a dedicated virtual host to do this? Right now I have a standard (crappy) Dreamhost shared hosting. If I go with a DVH, is Media Templ...

Apache configuration with virtual hosts and SSL on a local network

Moved to ServerFault: Apahe configuration with virtual hosts and SSL on a local network I'm trying to setup my local Apache configuration like so: http://localhost/ should serve ~/ http://development.somedomain.co.nz/ should serve ~/sites/development.somedomain.co.nz/ https://development.assldomain.co.nz/ should serve ~/sites/develop...

Who is the best cloud hosting provider for managing multiple sites with unique IP addresses/vhosts?

Over the past few weeks I have been trying to scout out a viable alternative to my hybrid/dedicated box over at WiredTree. I have all but landed on a cloud server solution from either Amazon (EC2) or Rackspace (Cloud Servers). My questions are: 1) Between those two, and any other cloud provider I may have missed out there, who can offe...

Define mono for only one VirtualHost

I am running an Apache Server with multiple VirtualHosts, and of course I know how to create a new VirtualHost, but I do not know, how I can setup Mono only for this VirtualHost. I have read I need to disable MonoAutoApplication, but I can not find any information on how to set it up on only this VirtualHost. Can anybody in here help m...

How to set up a virtual host in WebLogic ?

Is it possible to set a virtual host in WebLogic only ? In my development machine, I have a WebLogic instance with two servers, listening to ports 7002 and 7003; the deployed application contains EJBs and MDBs. I want to point a Java client outside of the container to a single url, which I know will be served by the cluster, instead of...

Apache virtualhosts and default server not working as expected (serving incorrect content)

Hello I've been playing around with this for a couple of hours and have come to the conclusion that asking someone is probably the best way forwards! I have a fairly out-of-the-box apache install (I've added mod_security and mod_python) so not touched /etc/httpd/conf/httpd.conf I have a number of domains all running as 's and each wit...

PHP: Script to manage virtual hosts? (CentOS and Apache)

Hi all! I'm looking for hints and tips to create php script where I can manage easelly my Apache virtual hosts. This is private use only and I don't want to use any heavy and complex scripts like directadmin or cPanel. Just simple script where I can view added virtual hosts, add new ones and remove etc.. Platform is CentOS 5.3, Apach...

access virtual host(name based) in android

hii i have set up virtual host in apache and and added relevent information in windows host file. it works fine for desktop browsers but i am not able to access this from android simulator's browser. as a example a i created a virtual host "testweb" i added this information in widows hosts file also so in desktop browser it wor...

Create/Modify a Virtual Host and Reload Apache from Inside Rails App

My application is a set of two rails applications. Based on some parameters in first app. I need to setup the virtual host of the second app. I just need to change the ServerName and ServerAlias in apache VH and enable the site using a2ensite and then 'apache2 reload '. How can I do this from within a rails application? Thanks, Imran ...

Jetty 6 - VirtualHosts - SSL Certificates

Hi all, I have several virtualhosts configured on a single Jetty instance. I would like to also have unique SSL Certificates for each virtualhost. Can I do this? My understanding is that the call to add a connector can only be made inside a Server configuration meaning that there is only 1 SSL certificate that can be used. Walter ...

apache virtual host to work with django

My project is under: /home/projects/testing and I'm adding this to the buttom of my /etc/httpd/conf/httpd.conf file on Centos machine, but that is not working, <Location "/testing/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE testing.settings PythonOption django.r...

Apache2 VirtualHost Configuration with SSL

Hello! I'm new here and I have a strange problem which needs to be solved. Previously I searched in the whole forum and I've read all of related questions but I didn't find solution to my question. We have two servers and a firewall computer. On the Server#1 there is an Apache 2.2 web server and it forwards the incoming traffic to the a...

setup apache virtualhost (windows)

Hi, How to setup virtualhost for multiple domain name on windows ? I will use it for my own test projects. I have 3 projects that I need to setup and at the moment I'm using xampplite for the portable apache. www.foo-bar.com --> direct to c:\xampplite\htdocs\foo-bar\ www.abcdef.com --> directo to c:\xampplite\htdocs\abcdef\ www.qwert...

Tomcat cookies not working via my ProxyPass VirtualHost

Hi there. I'm having some issues with getting cookies to work when using a ProxyPass to redirect traffic on port 80 to a web-application hosted via Tomcat. My motivation for enabling cookies is to get rid of the "jsessionid=" parameter that is appended to the URLs. I've enabled cookies in my context.xml in META-INF/ for my web applica...