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

learn more… | top users | synonyms

1
vote
0answers
246 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
618 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
962 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
311 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
183 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
80 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
139 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
36 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
70 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
536 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
154 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
1k 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
172 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
183 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
120 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
449 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
98 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
921 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
145 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
537 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 @ ...
2
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
31 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 ...
7
votes
3answers
10k 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
272 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
307 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
46 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
109 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
352 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
833 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
361 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
345 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
73 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
937 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
107 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
255 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
94 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 ...
1
vote
2answers
342 views

Ubuntu 12.04 cloud edition on Amazon - Apache2 - /etc

I have setup a web server on Amazon with 3 Virtual hosts. For some reason I can't get any of the sites going on it, they all show a 404 error. /var/log/apache2/error.log shows "File does not exist: ...
1
vote
2answers
2k views

Subdomain always redirects to main domain. Why?

when I request site1.example.com I get redirected to example.com. In /etc/apache2/sites-available/ I have setup a site1.example.de file with following content <VirtualHost *:80> ServerName ...
-3
votes
1answer
66 views

Ip address goes to lowest alphabetical domain on server

If I type in my server ip address into a browser, it always goes to the lowest alphabetical domain on my server. So if I had these domain on my server: zty.com typ.com dfo.com ...typing in the ip ...
2
votes
4answers
749 views

Managing lots of Apache vhost ServerAliases

So I've got this site that's being served as a virtual host by Apache 2. And it has a metric ton of alternative domain names that are all supposed to resolve to it. Up to now I've handled things like ...
0
votes
1answer
323 views

Redirect Addresses to localhost by Pattern on Mac OS X

I'm not even 100% sure how to ask this question. The answer might be out there, but I can't find it. So I've set up virtual hosts for my Mac and I do all my development locally on my computer. I have ...
2
votes
1answer
433 views

Website on nginx server requested from subdirectory

we have two nginx servers. The first server receives a request via www.example.com/partner. He sends the whole request to the second server which has php+fastCgi configured. Nginx access log from ...
1
vote
2answers
144 views

nginx vhost config

This is my config file for nginx to allow it to respond only to domain1.com, and not domain2.com server { server_name .domain1.com; root /var/www/; #charset koi8-r; #access_log ...
1
vote
1answer
247 views

vhost redirect non exist subdomains

I have this in my vhost file which direct all sub domains which do not exist to the main www. <VirtualHost *:80> ServerName mysite.com ServerAlias *.mysite.com Redirect 301 / ...