virtualhost

Apache: VirtualHost with [PHP|Python|Ruby] support

Hi there, I am experimenting with several languages (Python, Ruby...), and I would like to know if there is a way to optimize my Apache Server to load certain modules only in certain VirtualHost, for instance: http://myapp1 <- just with Ruby support http://myapp2 <- just with Python support http://myapp3 <- just with Php support ... ...

Is it possible to only have a global.asax file in an asp.net application?

I have a root directory on a web server that is linked to a number of URLs. I want to use the application begin request event of a global.asax file to divert requests to the directories containing the content for the relevant web sites. So in psuedo code terms something like this - If URL.Contains("www.somthing.com") Then divert user to...

How can I look at locally-hosted projects with the Android SDK emulator?

I develop all my sites on a OS 10.5.8 server with PHP and MySQL, and I've configured my /etc/hosts and httpd.conf files to display my site at example.dev in any browser on that machine. I recently installed Android's software development kit which I'd like to use to develop and test stylesheets targeted to mobile Webkit-- but I can't ac...

Running mutliple websites locally Apache PHP Ubuntu

Hi, I am attempting to run more than one virtualhost(?), for example: http:/localhost will point to one project, http:/newsite to another and http:/myfavourite again to a different project a different document root. (each http:// is http:/ here because of hyperlink posting restrictions) I have had no success looking where to edit the ...

Virtual desktop environment for development

Our network team is thinking of setting up a virtual desktop environment (via Windows 2008 virtual host) for each developer. So we are going to have dumb terminals/laptops and should be using the virtual desktops for all of our work. Ours is a Microsoft shop and we work with all versions of .net framework. Not having the development en...

Apache 2.2 localhost VirtualHosts problems

Hi all, I am trying to setup my dev machine with virtual hosts so I can access my development projects with a simple url, like http:// project.dev/ rather that a whole http:// 127.0.0.1/dev/path/to/root/of/project/ type of url. Now, I'm aware there are many tutorials and questions already answered about this, but after trying many of th...

Apache 2.2 VirtualHosts on Vista

Apache 2.2 set up on Windows Vista When I go to localhost in my browser I get the "It works!" page, so I'm pretty sure it installed just fine Problem is when I go to a VirtualHost that I've set up (ex. tryout.localhost) it still goes to the "It works!" page instead of going to the files specified in the DocumentRoot of the virtual host...

How to direct subdomains to the correct JBoss App?

Hi, new to JBoss and am configuring some applications. I know how to do this in apache webserver, but not using Jboss. I have successfully deployed 3 applications on a redhat box, JBoss 4.2. If my server is called fruit.mycompany.com, I can access the three apps this way: http://fruit.mycompany.com:8080/quince http://fruit.mycompany....

Is the Timeout directive of Apache overrideable in htaccess or inside of a <VirtualHost>?

I want to override the Timeout configuration of apache, only for one domain. I would prefer to be able to offer the option of overriding it in the htaccess, but manually configuring it in the VirtualHost configuration would be fine too. Is this supposed to work? Thanks. ...

Why does my mod_perl script freeze my server?

Hi! I cannot make my Perl script run stable on the server. Here is the problem. When the script is accessed more than 5 times a second, the server freezes. And some time later the server hangs forever. SSH does not respond and I have to restart the server. I'm using Apache with mod_perl. The script is hosted on Virtual Dedicated Serv...

How to use on the same Apache2 Server 2 differents Certificates using VirtualHost ?

Hello, I get a certificate from Gandi for a domain www.mondomaine.fr But for sql.mondomaine.fr I wanted to use a Self-Signed SSL certificate. If I active sql.mondomaine.fr, the www.mondomaine.fr is using the self-signed certificate instead of the Gandiś one. If I desactivate the sql. everything works fine. How can I manage the use of...

Separate Website From Application with VirtualHosts

I would like to host 1 part of my project on the www.domain.com and domain.com, but if it's not either of those, route it to another separate site on the same box. This should explain what I am trying to do, but no clue how to go about it: <VirtualHost *> <Directory /var/www/domain> Options FollowSymLinks Al...

Reaching files outside od the documentroot scope

Hi. I'm writing a script to build a dynamic website, the website is created by loading external components. The DocumentRoot is location at /sites/website/public the components directory is located at /sites/website/components i wannna reach the data directory of each component depends on the requested url. for example: the url: htt...

Wordpress not working when using Apache virtual hosts

I currently use virtual hosts on my computer so that I can manage multiple sites on my computer. Currently, I use c:/vhosts/php (default localhost) for regular PHP development, c:/vhosts/BTS for Wordpress, and c:/vhosts/cake for CakePHP development. (see below). Now when I launch my WAMPP and go to http://BTS, it loads the index page...

Apache virtual host configuration on debian

Migrated to Server Fault Apache virtual host configuration on debian Im new to apache configuration and would be really glad if someone helped me with the following.Im running apache on a virtual private server, running the debian operating system. In /etc/apache2/sites-available, i have two virtual hosts defined,site1.com.conf and si...

Wildcard DNS combined with Single Subdomain DNS

I am trying to have all subdomains point to one location on disk, and a particular subdomain (dev) point to another. I tried this : <VirtualHost cueflash.com> ServerAdmin webmaster@localhost ServerAlias www.cueflash.com *.cueflash.com DocumentRoot /home/cueflash/www/cueflash.com CustomLog /var/log/apache2/cueflash.com.log combined...

Create subdomain upon user registration

I have a website where I want users that sign up to get their own subdomain. This subdomain is virtual, and every subdomain uses the same web server files. I use PHP and Apache, and I know about Virtual Hosts, but I'm wondering where I need to put the vhosts code. First, I don't have access to httpd.conf. Second, I want this to be done ...

How do I redirect to a shared virtual hosted site in the hosts file?

Hi, I want to change my hosts file to redirect a web address to my site... normally I would just do... ping mysite.com then in the hosts file, if the IP came out as 99.99.99.99, I'd write... 99.99.99.99 siteiwanttoredirect.com But in this case my site is on virtual shared hosting... which means the IP I get back from the ping is...

VirtualHosting doesn't work. Logs me in through previous session

When I log in with one browser session, I have to log in, but when I open another session it has automatically logged me in (as if I've picked up session 1), this does not happen if I use http://192.168.0.9:9070 It forces me to log in each time. So I know the application is working, it's just the proxy server that seems to apply the log...

More virtual hosts on one rails application

I would like to access one rails application through more virtual hosts. The different virtual hosts would differ in the database, images, stylesheets and in some cases the layout of the views. What do you recommend for realisation of serving multiple applications by one rails code, which is accessed through different virtual hosts? Edi...