vhosts

Automatically Host User Domains in Rails/Apache

Hi, I'm currently developing a user facing web application that gives each new user their own subdomain on the site, which is fine (using subdomain_fu), but is there a way to let a user map their own domain to this subdomain? I know how to do this manually through SSH-ing into the server and editing the Apache Vhosts file by hand, but i...

RewriteCond to change displayed host, but not server

Typing out the title to this leads me to believe this might not be possible due to security concerns, but I will ask anyway. I have shortcode support running on my server, lets call it xx.yy I want it so when a user sends a request to xx.yy, it just changes the displayed host to another valid domain running on the same box. I have thi...

Apache AllowEncodedSlashes Not Working

Hi, I'm running Apache(XAMPP package) and i'm trying to allow forward slashes in the URI to be able to retrieve parameters sent with encodeURIComponent, so i added the directive AllowEncodedSlashes On NameVirtualHost *:80 ... in httpd-vhosts.conf. however i'm still getting 404 error, am i missing something? Regards. Yehia A.Salam ...

encodeURIComponent + Apache AllowEncodedSlashes

Hi, I'm running Apache(XAMPP package) and i'm trying to allow forward slashes in the URI to be able to retrieve parameters sent with encodeURIComponent, so i added the directive AllowEncodedSlashes On NameVirtualHost *:80 ... in httpd-vhosts.conf. however i'm still getting 404 error, am i missing something? Regards. Yehia A.Salam ...

[Apache] Rewrite Logic, is there a better way to do this?

I'm curious, is there a more efficient way to do the the following? Right now it works great, just seems like overkill... RewriteEngine On RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteCond...

Apache virtualhosts overriding each other.

I'm working on getting a development environment setup on Arch Linux. My virtual hosts all seem to work when I comment out the other virtual hosts in the file but if they are all in there only the first one work when I point my browser to the ServerName. # # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # ...

Loading vhosts from MySQL in lighttpd

I have a MySQL table with a list of domains added by a PHP script. It is literally just a simple list of domains, and all the domains will point to the exact same location. How can I get lighttpd to load these domains? It would be good if there was some built in functionality to automatically check the table for new additions, or just c...

Don't have a2ensite on my ubuntu server

Hi all. I have an ubuntu server running nginx. I just tried to enable a vhost config and discovered that i don't have the a2ensite command. I searched with find and whereis and it looks like i just don't have it. I realise i could hand-roll my own symbolic link from sites-enabled to sites-available but i'd rather use a2ensite/a2dissi...

Differences between the way WAMP and XAMPP handle vhosts?

I'm switching from WAMP to XAMPP and XAMPP has broken my vhosts. It won't allow access to them. "You don't have permission to access the requested directory. There is either no index document or the directory is read-protected." The Apache error log says: "[error] [client 127.0.0.1] client denied by server configuration...

Multiple Domains on a VPS with Apache

Hello all, I am planning on getting a VPS soon and have two sites I want to host. I have my local vhosts setup for my development environment using host file to port it correctly. My question is hopefully simple: When setting up with two separate domains that point to the one VPS server is Apache smart enough, like on the local environ...

Apache: mod_rails and mod_php - can I run both both at the same time?

My goal is to run multiple Ruby on Rails web apps and one PHP application on Apache2 from a single server. All of those virtual hosts will be Name-based and running on 80 port. Is it possible? How can I do that? Will it have any negative performance impact because of these mods_x cooperation. ...

Custom Domains in Chrome

I've got a vhosts file set up for my local machine where I use a made up domain (cascade.mtn) with a bunch of subdomains (rainier.cascade.mtn, hood.cascade.mtn, etc). In every other browser I can hit those domains just fine but in Chrome it just takes me to a Google search. Is there anyway to force Chrome to recognized the cascade.mtn d...

Multiple virtual hosts - all of those beyond the first are inheriting the DocumentRoot

Hey, I am trying to set up several virtual hosts in my apache httpd.config file. However it seems that if I change them round, they all inherit the DocumentRoot value from the first one. My VirtualHosts are as follows: <VirtualHost customerApp_Global:427> ServerName customerApp_Global DocumentRoot "C:/wamp/www/customerApp_v2" Direc...

Apache ssl-enabled vhost returns random 400 bad request

I've setup two local vhosts (http and self-signed https) for billing.example.com and trying them in firefox with firebug. Http vhost only purpose is redirecting all requests to https. Almost each time I request page from https, one or two files with associated resources (images, js, css, etc...) and sometimes php page itself return 400 ...