vhosts

Multi-domain Subversion Deployment on Media Temple DV

This is a question pretty specific to Media Temple DV servers, but I'm hoping someone out there can help. Our deployment process on a DV server involves ssh'ing in and doing a Subversion checkout into a folder called "svn" and then creating a symlink in "httpdocs" to point to a release folder in that "svn" folder. I'm wondering if it's p...

mod_rewrite, vhosts on Apache 2.2 (windows)

Hi there Guys. I'm currently working on a new website and want to run Elgg (Elgg.org) on it. It's fully running on PHP5 and has a lot of rewrite rules defined in the .htaccess files. On the Elgg community I didn't found / get any answers, so I will try and ask them here. I'm running multiple sites on my windows machine, now I want one ...

Common Rewrite Setting For Multiple VHosts

Hey, I am running Apache2 with multiple vhosts in the sites-enabled folder, each looks a bit like this: <VirtualHost *:80> ServerName site1.com ServerAlias www.site1.com DocumentRoot /home/sites/site1/www/ <Directory /home/sites/site/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all ...

add a server alias to the domain's VHOST?

I have a VPS. I hosted a domain ipointing to a sub directory of the www folder. The domain works fine till the home page. The moment I start going to other pages its shows my servers [orginalname]/[subdirectory name] . I think I need to add a server alias to the domain's VHOST. Can anyone tell me how to do that?? ...

Rewrite subdomain to subdomain/folder in vhost situation

I'm trying to rewrite abc.example.com/path to abc.example.com/index.php/abc/path using the following .htaccess: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^(abc)\.example\.com RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/abc/$1 [L] The situation is: domain www.e...

Deploying rails application to root with passenger error

Hi guys, I am trying to deploy my rails application to virtual host's root with passenger but I had some problems. Error log: [Sun Aug 23 10:09:06 2009] [error] [client 91.187.5.190] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. ...

How to configure VirtualHost for a Sinatra App with Passenger?

Hey experts, i run a rails app on passenger and it all works like it should. Now i want to add an sinatra app to run as rack application with passenger, but i always get a routing error. My VirtualHosts File looks like: NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain1.com DocumentRoot /home/user1/vhosts/project1/pub...

mod_rewrite: Rewriting / to cgi script

Is there any way to rewrite a GET / to a cgi script with a parameter? Basically redirect / to /cgi-bin/scipt.cgi?123. This does not work: RewriteEngine On RewriteRule ^/$ /cgi-bin/script.cgi?123 [L] Instead it somehow rewrites / to /index.html/ Any way of doing this? ...

Apache setup for multiple sites with common files

I have approx 50 sites that all use the exact same files other than CSS and IMAGES, i currently duplicate the files each time i create a new site and upload different css and images. What I want do so set up each vhost to have the same DocumentRoot then add AliasMatch for the css and images folders e.g: #Common Files VHOST <VirtualHos...

Multiple SSL Certificates Running on OSX 10.6

I have been running into walls with this for a while. I am attempting to setup multiple IP addresses on Snow Leopard so that I can develop with SSL certificates. I am running XAMPP - I don't know if that is the problem, but I guess I would run into the same problems, considering the built in apache is turned off. So first up I looked i...

How can I force 'www' subdomain w/ Apache2 + Rails + Phusion Passenger?

My clients want to use 301 redirects to force the 'www' subdomain on their sites. So 'example.com/something' resolves to 'www.example.com/somthing' etc. What I'm trying to do is simply add this to my vhost file: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName example.com ServerAlias www.* DocumentRoot /data/...

Object not found - - Error 404

My url is : https://virtual.app.c7beta.com/rpc/json?c=Sticky&amp;m=get_user_notes And I got the following error: Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 My c...

im confused with apache vhost

Hi, I am building a web application with Zend Framework, and I need to point my app to the "public" folder of the application: So basically when I call http://localhost/myapp it should display http://localhost/myapp/public/ I created a virtual host file called myapp into /etc/apache2/sites-available/: <VirtualHost *:80> DocumentR...

Nginx server matching too many URLs

Hello, I've got a domain example.com and an "alternative" of some-example.com. I'm trying to direct traffic from some-example.com to example.com using a simple server declaration in nginx as follows: server { listen 80; server_name some-example.com; rewrite ^/(.*) http://example.com/$1 permanent; } I'm not 100% sure if thi...

IP based VirtualHost and Apache

I have this webserver that have an IP address xxx.xxx.xx.x, I also have a website I want to publish, but I do not have any domain for my website yet. So in my httpd-vhosts.conf file I have this setting: <VirtualHost xxx.xxx.xx.x> ServerName xxx.xxx.xx.x DocumentRoot "C:\Sites\mysite" </VirtualHost> And since I dont have a domain ...

Multiple VirtualHosts (httpd.conf) breaks php for the virtual hosts

Hello, I'm setting up multiple Virtualhosts directives in a vhost file (httpd.include on this server). The purpose is to point example.com to realexample.com/folder/fileshere/ but still have it say example.com.. well It does that fine, but php doesn't work on the virtualhost. It asks me to download the php file, which is obviously no...

Using mod_rewrite with mod_vhost_alias

I was wondering if it's possible to use the vhost_alias module in conjunction with a rewrite rule. So in my VirtualHost I have this: VirtualDocumentRoot /var/www/%2+/%1 For example, sub.mydomain.com will point to /var/www/mydomain.com/sub/ But I want to check if the folder exists to avoid getting a 404 error if I try to reach a bogus ...

A web application that lets users choose a domain name for the website they are about to create?

I want to create a web application that allows users to sign up, register a domain name and create their own website. This will be done in Ubuntu 9.10, Apache 2, Mysql 5 and Php 5. At the moment, the only area of development I'm uncertain about is the domain name registration and mapping it to the web application. I'm going to postpon...

My httpd.conf was accidentally deleted, can't start apache. How do I recreate httpd.conf in Godaddy's VDS?

Hi, I don't know if it's appropriate to ask for this but I really need to know what's the initial content of /var/www/vhosts/mydomain.com/conf/httpd.include on Godaaddy's VDS because the conf directory was accidentally deleted by somebody and now I cannot start Apache. We didn't purchase an assited service plan so Godaddy won't help m...

vHost RewriteRule is creating a 500 Error

Hello, Below you will find my current vHost entry that I am using for a site that I currently have under development. This vHost entry works fine when I have it on my local machine, but when I push my code to my staging server that is running this same vHost record I receive a 500 Internal Server error. The machine I'm running this vHo...