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

learn more… | top users | synonyms

0
votes
1answer
365 views

Plesk open_basedir restriction in effect - restart server issue

Hello Everybody, I got Plesk on a dedicated server. I had open_basedir restriction in effect error in my php application, so i have edited the php.ini files on server core and created one within ...
2
votes
2answers
155 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
0answers
77 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
90 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
56 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
277 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
81 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
136 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
186 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
36 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
142 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
43 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
685 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
65 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
200 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
56 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
162 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
657 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
328 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
909 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
344 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
239 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
84 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
161 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
720 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
187 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
200 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
233 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
117 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
34 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
136 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
517 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
105 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
1answer
700 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
2answers
2k 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
4k 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
34 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 ...
11
votes
3answers
15k 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
326 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
399 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
48 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
122 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 ...