Using Apache Virtual Host, you can run several websites on the same server.

learn more… | top users | synonyms

0
votes
0answers
39 views

How to have a vhost point to another vhost's sub folder URL

I have 2 Virtual hosts set up like this... vhosts/domain which is accessed at www.domain.com and vhosts/domainblog which is accessed at www.domain.com/blog Well the blog part is not setup yet, ...
4
votes
2answers
108 views

Redirect a subdomain to a directory with vhosts

I'd like to redirect a subdomain to a user directory. So I've tried this config, but it seems redirect to the root folder. <VirtualHost *:80> ServerName epnet.fr ServerAlias *.epnet.fr ...
0
votes
1answer
72 views

How do I configure varnish for my vhosts

I have a centos 5.x server running Apache+Drupal with 13 vhosts. These vhosts are all Top Level Domains. Munin reports heavy swapping for a few days in a month and I discovered that these are mostly ...
0
votes
2answers
88 views

Apache reverse proxy converts links in page to https

I have set up a reverse proxy and on the resulting page the http links show as https, so they cannot be loaded as this is a pure http page. Could this be caused by a bad reverse proxy configuration? ...
0
votes
2answers
81 views

Apache Virtual Host not working on .com domain

I have got a strange problem. I have two domains: mysite.co.uk and mysite.com, which need to point to the same directory on my server. The VHost for mysite.co.uk works perfectly. However, mysite.com ...
1
vote
1answer
172 views

How to enable group-writable suexec-capable CGI scripts?

I have been asked to set up a shared webspace on our department webserver that may be accessed by multiple people and which might be running CGI or PHP scripts. The people maintaining the webspace ...
-1
votes
1answer
283 views

all vhost are pointing to single localtion in openSuse 12.3

I have a virtual host setup for development on my local machine a.local, now I'm adding another vhost b.local, I created another vhost file in /etc/apache2/vhosts.d/ as b.local.conf. When I access ...
1
vote
2answers
78 views

Apache vhost configuration for ServerAlias getting default

Given this configuration: NameVirtualHost *:80 Listen 80 <VirtualHost *:80> ServerName default.example.com </VirtualHost> <VirtualHost *:80> ServerName ...
0
votes
1answer
187 views

apache2: two virtual hosts interfere

I am a developer, not a sys-admin :) I always have been running multiple vhosts in parallel on different ports, but this time something is interfering. I have one vhost which runs a python-based ...
1
vote
1answer
705 views

Limit mod_security rule to one vhost only

I run several domains (via vhosts) with the same apache installation. Some domains require different mod_security rules than the others. In a seperate exceptions.conf file I collect all those rules ...
0
votes
1answer
182 views

Plesk, access all vhosts via default.com/~some-domain.com? [closed]

Is it possible to access vhosts/domains created on server but not directly via domain which is created. I would like to have access in the form http://www.maindomain.com/~otherdomain.com or similar. ...
0
votes
1answer
727 views

mod_vhost_alias VirtualDocumentRoot many domains

I'm sure I'm not the first person to encounter this problem, but I cannot, for the life of me, find an answer - although that could be down to not knowing what to search. I have the need to host many ...
0
votes
2answers
244 views

Apache virtualhost strange behaviour

I have multiple domains linked via A-Record to my server. For all of them I created a virtualhost. Some of them run with and without of www. Some have additional subdomains and some have wildcard ...
2
votes
1answer
77 views

Load balancer apache what's wrong

I' trying to make a load balancing using apache but when I got to my (Local)host 'load' got Not found I've been load those mods LoadModule proxy_module modules/mod_proxy.so LoadModule ...
0
votes
1answer
44 views

Apache 301 redirect in vhost

I wish to redirect(301) a url if the url dont have a string present in it. eg: http:://example.com must always redirected to http:://example.com/en http:://example.com/test.html must always ...
0
votes
1answer
215 views

Investigating a phishing complaint

UPDATE: Seems it was a fake email, so not really that urgent, but the questions are still valid. So I received an email about a VPS I host (I'm a VPS hosting company, this is a customer VPS) being ...
0
votes
2answers
1k views

Apache doesn't parse PHP on VHOST while it works on default

I set up a Debian 6 VPS to host couple of small sites and it works beautifully for default one. Next i created new user and copy/paste default vhost file and enabled it with a2ensite and only ...
0
votes
1answer
970 views

Apache - how do I create an exception for a vhost's VirtualDocumentRoot in httpd.conf?

I'm new to Apache, and I'm wondering if there's a way to configure VirtualDocumentRoot to create an exception for just one of my vhosts on my local server. Currently all of my sites are stored in ...
0
votes
1answer
624 views

Apache not accessing a symlink vhost directory?

Alright I've been hitting my head against the desk trying to figure out whats going on with this virtual host. I'm able to load the standard html and php files from the default doc root but can't load ...
1
vote
1answer
1k views

Best practices setting up Apache2 Virtualhosts with Aliases?

I'm setting my Apache2 Virtual Hosts, in a Debian Squeeze server, in this way: filename: whatever.mydomain.com Alias /whatever /var/www/whatever.mydomain.com <VirtualHost *:80> ...
0
votes
1answer
108 views

How to create an error_log in each's vhosts httpdocs directory

Running a CentOS 6.4 server with Plesk 11 and virtual hosts for each client/domain. What I'm now trying to accomplish is to auto-create an error_log in each user's httpdocs folder in case of problems ...
2
votes
2answers
204 views

Apache vhosts - How do I route many sites one way, but route dev site differently?

127.0.0.1 developmentsite.com 127.0.0.1 blockeddomain1.com 127.0.0.1 blockeddomain2.com I would like to block the last 2 domains (and a bunch of others). For this I have added the following vhost ...
0
votes
1answer
95 views

Two tomcat instances behind apache

I have three servers. Server A is a Apache Server, Server B and C are Tomcat Servers. I added two new Virtual Hosts to the Apache 1st Host: <VirtualHost *:80> ServerName dev.domain.com ...
0
votes
1answer
101 views

Apache, serving a subdomain from a different directory than webroot

I'm trying to serve two projects, separately, from a shared directory on an Ubuntu server via Apache. The directory of the whole kit and kaboodle looks something like: /project /api /app Now, ...
-1
votes
1answer
61 views

Secondary domains not working on dedicated server

I have a domain pointing to the dedicated IP address on my dedicated server working fine. The problem is that any other domains I create pointing to shared IP addresses on the server are not ...
1
vote
1answer
435 views

Godaddy forward multiple domains to static ip with vhost

Hello and sorry if this is a duplicate, just couldn't find the answer... So i own domainA.com and domainB.com (from Godaddy). I forward both to my static ip. Web server is apache 2.2.23 with local ip ...
2
votes
2answers
84 views

apache2 points non-www to root instead of website folder

I have few different vhost created and every one has its own folder in /var/www/ like this /var/www/example1/ /var/www/example2/ Now, when I type url with www www.example1.com it points to the ...
0
votes
1answer
17 views

Default log directive for vhost

I'm using Apache 2 with VirtualHosts and currently, I'll have to add ErrorLog/CustomLog manually for each new vhost (I know I could use a script to create them). Is there a way to define those ...
0
votes
1answer
359 views

nginx: how to overwrite one directive

I'm trying to organize my vhost configs in several files, so that there is a view basic files / "templates" and the rest just include them and overwite settings as needed. Here is described, how the ...
1
vote
1answer
2k views

Setup a shared Varnish server

Having set up and configured Varnish Cache to handle caching for a single site, I'm looking into expanding the service to cover multiple sites running across multiple webservers, each in turn running ...
-1
votes
2answers
209 views

Why does 127.0.0.1 point to virtual host?

I have a Virtual Host set up in apache to run CodeIgniter: <VirtualHost *:80> DocumentRoot "/var/www/CodeIgniter" ServerName codeigniter.loc </VirtualHost> Problem is, when I ...
0
votes
2answers
37 views

Which hosts file is apache using?

I'm trying to set up apache virtual hosts on my local machine. Since my file system is kind of a mess, I have several hosts files hanging around. Is there a way to determine which hosts file my apache ...
0
votes
1answer
167 views

Apache vhosts configuration

I have big problems trying to figure this out so please help me out. I have several virutal hosts configured and using the Debian default way of configuring vhosts. 2 folders sites-available ...
0
votes
1answer
46 views

Apache modrewrite for vhost applies to all vhosts

I have three separate dvhost configurations on sites-available and one of them contains: RewriteEngine On RewriteRule ^/$ /app/login.axvw [R] The major problem is that it redirects all other vhost ...
3
votes
4answers
787 views

Nginx rewrite rule “^/([a-z0-9]{32})\.png$” not working (used to work on Apache)

I have these rewrite rules (I tried both with no avail): location ~* "^/([a-z0-9]{32})\.png$" { rewrite ^ /index.php?page=log&id=$1 last; } and location ~* ...
0
votes
0answers
68 views

Wildcard SSL for *.example.com generated from a.example.com - unable to apply to b.example.com

I am having a problem with understanding/setting up wildcard SSL certificate. The scenario is this: example.com(HTTP) domain is hosted by third party company and as it does not provide specific ...
3
votes
1answer
279 views

Is there any soft / hard limit on the number of virtual hosts that Nginx can handle?

And what are performance implications? Is it practical to host tens of thousands of vhosts on one Nginx instance? How much would the increased latency be? We plan to offer custom domains for users, ...
1
vote
1answer
61 views

How to deal with SSL default site with multiple vhosts

So I have multiple IP's on one server and for each IP I have a SSL website configured. This is working fine. However I server a number of non-SSL sites on the primary IP. The problem occurs when a ...
0
votes
0answers
200 views

Apache Virtual Host loads only one site at a time - 30s timeout

I have an issue with multiple virtual hosts on Apache2 on a default Turnkey Linux LAMP server (Debian Linux 6.0). They work fine, loading both websites, but not at the same time. I have set up two ...
1
vote
1answer
813 views

After svn switch - (405 METHOD_NOT_ALLOWED) or (500 Internal Server Error), why?

I have recently (today!), moved my SVN repository to my own server. I am having trouble checking out from my new repo and also updating my current working copy to use my new repo (which is a svnsync ...
4
votes
2answers
2k views

vhost setup for multiple SVN repositories on same server

I have 2 svn repos on my EC2 instance. They are located in /ebs/svn/repo1 & /ebs/svn/repo2. I have created a domain alias svn.mydomain.com, to point to the parent directory of above (/ebs/svn). ...
0
votes
1answer
394 views

Cannot add subdomain after editing vhost templates in DirectAdmin

Issue I have a virtual private server running Debian with DirectAdmin. I have edited the vhost template files used by DirectAdmin so that subdomains aren't placed in the main domain's public_html. ...
0
votes
2answers
1k views

Apache2 default vhost in alphabetical order or override with _default_ vhost?

I've got multiple named vhosts on an Apache web server (CentOS 5, Apache 2.2.3). Each vhost has their own config file in /etc/httpd/vhosts.d and these vhost config files are included from the main ...
1
vote
3answers
1k views

CentOs vhost shows default apache page [closed]

I'm using CentOs 6.2. On this server I want to host 1 website. I created a vhost in httpd.conf. You can see the setup below. The problem is that when I go to the domain I get the apache default ...
1
vote
1answer
356 views

Mac OS X Mountain Lion adding www to virtual host on localhost

I'm new to configuring my Mac for localhost so this may be a dumb question. I want to set up a virtual host so that http://localhost/domain points to http://domain.dev. In my Apache configuration, I ...
2
votes
0answers
296 views

Change domain (vhost?) on Gandi simple hosting

I have a Gandi Simple Hosting account and a domain (domain 1) which I also registered through Gandi. Gandi hosting is unfamiliar to me as it uses instances that don't have IP addresses. Currently I ...
0
votes
1answer
89 views

Is it possible to have multiple <Directory>'s in a vhost.conf? [closed]

My webserver is running Plesk and for each new site a vhost.conf file is created that has some include_path and open_basedir settings in it: <Directory /var/www/vhosts/website.nl/httpdocs> ...
0
votes
1answer
188 views

Multiple domains on same virtual hosts in Apache

I'm working on an application for my clients that allows them to set up small landing pages for their campaigns. I have a set of templates and views for adding text, photos etc to the templates. ...
-1
votes
1answer
37 views

Web hosting - horizontal scaling

I have a single machine that I use to host multiple websites with virtual hosts (lighttpd webserver), I can't say I am in a professional environment as I am hosting mainly for small websites and ...
0
votes
1answer
72 views

Apache virtual server httpd-vhosts undocumented issue

I have read the Apache documentation on the https-vhosts.conf file and after a couple of hours fighting this problem, figured it out on my own. Here's the situation: We have a domain that ends in a ...