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

learn more… | top users | synonyms

3
votes
4answers
621 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
60 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 ...
2
votes
0answers
149 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
51 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
144 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
540 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
1k 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
267 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. ...
1
vote
0answers
252 views

Homebrew PHP 5.4 and Apache [closed]

I've installed PHP 5.4.9 using homebrew-php In my httpd.conf the following line when uncommented works, but a php_info() reveals that apache is still using the default PHP 5.3. LoadModule ...
0
votes
2answers
690 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
votes
1answer
59 views

Name-based virtual hosting in Apache [closed]

I'd like to set up name-based virtual hosting in Apache, but I don't have DNS name (local private network). Thus I want to get something like that: http://192.168.0.1/wiki - First virtual host - ...
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
322 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
202 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
83 views

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

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
143 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
71 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 ...
2
votes
1answer
584 views

Newly added virtualhost not working, domain points to /var/www/

I've had no problem with vhosts before, but for some reason this one isn't pointing to the right document root. The domain is pointing to the correct IP, apache sees no errors with the config file in ...
0
votes
1answer
170 views

Apache2 vhost works with www, but not without

Ok so my site works with the www. but not without. If I visit the page without the www. , I get a 404 message Not Found The requested URL / was not found on this server. Apache/2.2.17 ...
1
vote
2answers
2k views

How to fix NameVirtualHost*:80 has no VirtualHosts on Apache2 first time Install?

I have made my first server following a tutorial here setting up domains on Apache2. When I try running /etc/init.d/apache2 restart I get this error: [Mon Oct 29 11:47:17 2012] [warn] ...
0
votes
1answer
175 views

Nginx: Serve an application from a subdirectory of the root-dir

I'm trying to migrate an application (or its .htaccess-files) written for Apache to Nginx and I've come across a problem I just can't wrap my head around. I'm from an Apach environment, so this is ...
0
votes
2answers
197 views

SSL on local sub-domain and sub-sub-domain

I have both local.domain.com and lmarket.local.domain.com pointing to my localhost from etc/hosts. The problem is that I am using XAMPP on Windows 7, and have 2 SSL VirtualHosts in my apache config, ...
0
votes
1answer
110 views

Configuring Apache vhost to process PHP files [duplicate]

Possible Duplicate: Apache not parsing files? Just sending downloads Description Now I have setup up a site in Apache using vhost. If I request something it response me a PHP file raw. ...
0
votes
1answer
32 views

Second www folder for vhost possible?

When setting up a vhost and choosing a DocumentRoot can I set it to a folder outside /var/www e.g. var/www2 or do I have to stay inside e.g. /var/www/site2 ? System: Ubuntu / Apache2
1
vote
1answer
124 views

Redirect one URL to another on the same site trick?

what I want to achive prod.com to be immediately moved to prod.com/cms when I did Redirect permanent / /cms I got a lot of /cmscmscmscmscms etc. Any ideas? my vhost <VirtualHost *:443> ...
0
votes
1answer
472 views

Working with different PHP version at the same time, php_value extension_dir not working?

I need both PHP 5.4.7 and 5.3.17 running on Windows 7 x64 with Apache 2.2.23. This is my virtual host configuration: <VirtualHost *:80> DocumentRoot "C:/WAMP/Apache/htdocs/php54" ...
1
vote
1answer
99 views

How to define two servers on different IPs in nginx?

Here is the problem: I have two domains which have pointed to two available IPs on a server. Say: siteone.com pointed to 1.2.3.4 sitetwo.com pointed to 1.2.3.5 What I did to configure nginx vhosts ...
0
votes
1answer
1k views

Apache vhosts config: Host Name instead of IP Address

I have a domain (example.com) hosted at an external provider. I directed the subdomain sub.example.com to my ubuntu server (12.04 with apache2). On my ubuntu server I have a vhost setup like this. ...
0
votes
0answers
154 views

Best way to backup Apache server vhosts and MySQL DBs

I want to keep a backup of my apache servers vhosts and MySQL databases without having to go into mysqladmin and do it manually and ftp downloading the domain which is what I do now. Is there some ...
0
votes
1answer
575 views

Apache virtual host configured with a sym-link to a folder in my user directory fails with 403 Forbidden

I'm sure someone has asked/answered this before but my search hasn't helped me much so... I have Eclipse IDE installed on my Linux box (LM13) with the 'workspace' folder located @ ...
3
votes
1answer
1k views

Best way to prevent default server?

I have a number of vhosts, and I'd like to "turn off" the default vhost, either by blank page, error page, or generally whatever is the most efficient use of Nginx's resources, whilst only allowing ...
0
votes
5answers
3k views

Apache redirect from http to https not working

I have the following conf files: file1: NameVirtualHost 123.45.67.890:80 <VirtualHost 123.45.67.890:80> ServerName example.com RedirectPermanent / https://example.com/ # ...
0
votes
3answers
32 views

On a VPS where two sites are hosted, why does the CNAME of one resolve to the website of the other?

I have a server setup where two sites are virtually hosted. They share the same IP address, of course, and the server runs Plesk to manage the sites. DNS is setup so that @ A points to the ip address ...
8
votes
3answers
11k views

Apache “Client denied by server configuration”, despite allowing access to directory (vhost configuration)

in Apache on Ubuntu I've set up a vhost, but in the browser I keep getting a "403 Access forbidden" error; the log says "Client denied by server configuration: /home/remix/". Looking for the solution ...
1
vote
1answer
285 views

Override Mass Virtual Hosting for One VirtualHost

I'm not sure if that question was properly worded. Basically, I have it set up via http://httpd.apache.org/docs/2.2/vhosts/mass.html so that I only have to create a folder (such as example.test) in ...
1
vote
0answers
336 views

mod_rewrite in alias directory not working

I have a wp blog which lives under /var/www/mysite.com/blog and is accessible via www.mysite.com/blog When visiting www.mysite.com/blog/ I see the index page, but all links on subdirectories are no ...
2
votes
1answer
47 views

Access all websites on a server via a shared domain

My setup is: Nginx(80) as a transparent proxy Apache(81) as back-end web server The paths to each domain on the server are like this: /var/www/$username/data/www/$domainname Of course to access ...
1
vote
0answers
111 views

Why this vhosts configuration keeps redirect other domains to one

I'm trying to add a second domain to nginx. It's ok to access static files like css in domain2.com but visits to php scripts (e.g domain2.com/index.php) will be 302 redirect to domain1.com (e.g ...
0
votes
2answers
358 views

Apache ssl proxy unwanted redirection

I'm running ubuntu server 12.04. I want to secure access to a python app via apache ssl proxy. I have sudo a2ensite erp.mydomain.com And I have in /etc/hosts 127.0.0.1 mydomain.com ...
1
vote
3answers
872 views

How to set up vhosts on Mac OS for zend framework?

I've added a virtual host in my vhosts file like this <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "/Users/myname/Sites/test/public" ServerName test ...
0
votes
1answer
376 views

How can I setup a vhost that resolves the subdomain “phpmyadmin” on any TLD?

I have a web server with quite a few domains on it. I am looking for an easy way to point specific sub-domains (webmail, phpmyadmin) on any TLD hosted on this server to a folder with the relevant ...
0
votes
2answers
351 views

Apache multiple IPs and SSL

I have an Apache server running two sub domains, one of them is configured with SSL. To get the other sub domain to work, we of course had to set up a new IP (because the other one was configured ...
0
votes
1answer
76 views

How to diagnose DNS virtual domain 404s

Until a few days ago I was hosting a single domain on my Server. Now I've added a second domain via apache virtual hosts. Both domains are name based and hosted from the same IP. Now my logs show me ...
2
votes
1answer
74 views

Apache: multiple domains handling

So I use following schema to handle multiple sites on my apache: <VirtualHost 192.168.1.100:80> # get the server name from the Host: header UseCanonicalName Off VirtualDocumentRoot ...
0
votes
1answer
1k views

Best way to handle PHP sessions across Apache vhost wildcard domains

I'm currently running a site that allows users to use custom domains (i.e. so instead of mysite.com/myaccount, they could have myaccount.com). They just change the A record of their domain and we then ...
2
votes
1answer
64 views

What is the best setup of mod_mono with more virtual hosts?

I have VPS on debian, where I want to host at least 20 virtual hosts running mono application. On PHP I was using mpm_itk to run each vhost under its own user (I thing it is good for security and ...
3
votes
1answer
109 views

Concerns about Apache per-Vhost logging setup

I'm both senior developer and sysadmin in my company, so i'm trying to deal with the needs of both activities. I've set up our apache box, wich deals with 30-50 domains atm (and hopefully will grow ...
0
votes
0answers
268 views

Plesk - Different webroot for domain alias

I have a customer who has a domain hosting on a plesk (8.2) server. Now I want to configure different webroots for his domain alias. The domain www.customer1-brandname.tld points at ...
0
votes
1answer
97 views

Why is my vhosts file interfering with my apache deployment?

When I enable my vhosts file (i.e. uncomment this line: Include /private/etc/apache2/extra/httpd-vhosts.conf) I am unable to reach localhost. I /am/ able to reach the last virtual host listed in my ...