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

learn more… | top users | synonyms

0
votes
1answer
157 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
165 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
108 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
112 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
408 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
96 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
644 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
130 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
422 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
779 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
2k 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 ...
6
votes
3answers
7k 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
239 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
243 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
103 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
335 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
745 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
336 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
322 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
75 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
72 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
769 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
63 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
102 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
236 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
93 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
323 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
64 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
622 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
300 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
415 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
143 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
228 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 / ...
0
votes
1answer
76 views

Configure Apache so it doesn't display a site for IP based vhosts

I have a CentOS LAMP server. It has several vhosts configured. If I navigate to: http://xxx.xxx.xxx.xxx/ (server IP) Apache displays one of the sites. How can I configure Apache to show nothing or ...
0
votes
0answers
111 views

wordpress multisite with mapping works using my pc hosts file but not with live records

Been a long time doing it but set up a wordpress multisite on turnkey lamp. The multisite has 2 subdomains. I have 2 addon domains mapped to the 2 subdomains of main site. Origianally used as ...
1
vote
2answers
2k views

Is it possible to run an Apache VirtualHost on port 443 with SSL off?

I am running a site completely over SSL using a load balancer in front of Apache doing all the certificate handling and decryption. I let HTTP traffic through the load balancer so Apache can handle ...
0
votes
1answer
52 views

Default vhost-config domain behaviour for apache httpd server

It seems that the if I go to my apache httpd-server with only the ip-address it will always default to the first vhost-config domain which is alphabetically first configured in the sites-enabled ...
0
votes
2answers
123 views

virtual domain redirection working only partially with apache 2.2

Apache 2.2.3 running with a lot of virtual hosts (boiled down to 3 Zope instances), configured in separate files. Works quite well, with one exception: The redirection of mydomain.net to ...
1
vote
1answer
83 views

Apache service can't access local drive

I know that Apache must use UNC paths for network resources when run as a service, but I have a local drive I:. It's not virtual drive, nor a mapped drive, it's a single physical disk inside the case. ...
0
votes
1answer
131 views

ServerAlias Exceptions

I am looking for a special configuration for Apache (and eventually NGinx) to allow to map all but one host as a ServerAlias to a specific VHost configuration. For example, my current setting is: ...
2
votes
1answer
199 views

lighttpd adding vhost error

I'm trying to have multiple domains. Followed the instructions from web and added the lines in lighttpd.conf file: $HTTP["host"] =~ “(^|.)example.com$” { server.document-root = ...
0
votes
1answer
179 views

Apache Wildcard Vhost not working

I can't seem to get a wildcard vhost working on my local apache installation. My vhosts file currently has the contents below. After I edit it, I'm making sure to restart the server but have still had ...
0
votes
1answer
282 views

How does cPanel let me freely choose DocumentRoot for vhosts without restarting Apache?

To avoid Apache restart, Dynamically Configured Mass Virtual Hosting is used. But, --in this case-- Apache takes vhost configurations from directory pattern. So, I am not free to choose DocumentRoot ...
0
votes
1answer
142 views

apache not connecting to .local domain

I have apache2 on my Mac OS X Lion box with name-based virtual hosting turned on. NameVirtualHost *:80 <VirtualHost *:80> ServerName my.puter.edu DocumentRoot "/path/to/Sites" ...
0
votes
1answer
320 views

Apache Tomcat Railo stack multiple sites

Goodday, First of all i'm very green when it comes to server related stuff so bear with me. I'm running ubuntu 11.10 and I have installed an apache tomcat railo stack on my server using ...
4
votes
3answers
8k views

Why am I getting this error in the logs?

Ok so I just started a new ubuntu server 11.10 and i added the vhost and all seems ok ...I also restarted apache but when i visit the browser i get a blank page the server ip is http://23.21.197.126/ ...