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

learn more… | top users | synonyms

0
votes
1answer
394 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
364 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
76 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
74 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
114 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
1answer
99 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
384 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
67 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
911 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
354 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
492 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
149 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
281 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
77 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 ...
1
vote
2answers
3k 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
58 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
135 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
92 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
158 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
259 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
207 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
305 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
149 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
379 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 ...
5
votes
4answers
11k 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/ ...
0
votes
2answers
152 views

VirtualHosts with Apache not respecting ServerName

This has always bugged me and I've never got around to figuring out why Apache does this, I always resorted to the mod_vhost plugin to work around the issue. Basically, I have 2 vhosts in ...
3
votes
1answer
4k views

How do you set server specific ENV values in Nginx?

I am starting a project that uses environment variables to set the database connection and a couple other things. (They didn't want to use configuration files since people are careless and overwrite ...
0
votes
3answers
258 views

Apache rewrite on Nginx

I have following .htaccess file DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^$ index.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f ...
1
vote
2answers
497 views

Apache2 virtual hosts ran as different users

I am fairly Apache2 savy, but have been tasked at my job to do the following; Server currently has two vhosts. (Two totally separate clients) I was asked if I could create a user account by which the ...
1
vote
1answer
1k views

Zend Server SSL Error

I'm having a weird issue with trying to setup SSL (https) on Zend Server CE for OSX. Currently I am running Zend Server 5.5. $ sudo zendctl.sh version Password: Zend Server version: 5.5.0 I ...
0
votes
3answers
233 views

apache vhost not working consistently

I have a vhost on my webserver whose sole and unique goal is to return the client IP adress: petrus@bzn:~$ cat /home/vhosts/domain.org/index.php <?php echo $_SERVER['REMOTE_ADDR']; echo "\n" ?> ...
0
votes
1answer
896 views

password protect apache vhost + reverse proxy

I wish to create a password protected vhost for selected clients (clients.mysite.com) We have a windows reverse proxy with some vhosts (www, static, secure). I am not using htaccess files as this is ...
0
votes
1answer
1k views

Varnish + Plesk : vhost broken

I have an e-commerce site with 300,000 products and 20,000 categories. It is slow and currently in production. I decided to install Varnish to speed up. The trouble is that during installation, I got ...
0
votes
4answers
1k views

Apache2 (XAMPP) virtual hosts directive does not work (apparently)

I'm having a few problems when setting up IP-based virtual hosts. First of all I'm using the current XAMPP from apachefriends (XAMPP 1.7.7 with Apache 2.2.21) on Windows 7. The basic functionality ...
1
vote
1answer
247 views

Website integration: Frame, redirect or virtual domain?

I'm overwhelmed by the many choices one has in website design. I'm probalbly asking something really easy to set up, but since I don't have any experience, I'm looking for help. Current Setup I've ...
0
votes
1answer
131 views

Setting up a secure instance of nginx on Debian 6

I have worked with and setup Apache before, but never nginx. Could anyone point me to a good guide that describes how to setup and run nginx for multiple website (vhosts, I suppose) support. I want ...
2
votes
2answers
1k views

httpd vhosts config (with Varnish) - 1 server /w multiple domains

I've been reading multiple questions about this topic but I can't seem to get it working... I have a server running CentOS with HTTPD running 1 website under the default httpd root: Listen 8080 ...
5
votes
3answers
2k views

Debian - how to dump virtual hosts

With Apache 2 running on windows or other Linux distros (eg Centos) you can show a list of virtual hosts by typing httpd -S at the command line. You get a nice listing of virtual hosts and where they ...
0
votes
1answer
113 views

Simply Apache virtual host configuration not working

I'm tying to configure Apache for running phpmyadmin in it's own folder, using phpmyadmin.local server name. I'm not an Apache "guru" and i can't figure out why this is not working. Any help would be ...
1
vote
2answers
269 views

SSL certificate paths in a virtual host

I've recently purchased a wildcard SSL certificate for my domain, generated the CSR, and everything has been sent through OK. My question is quite straightforward, but following this - ...
1
vote
1answer
499 views

iptables: redirect port to server that's bound to a specific IP

On a Linux box with multiple IPs, I'm having a problem redirecting a privileged port to an unprivileged port on which a server is listening that's bound to a specific IP. Add this rule to iptables to ...
1
vote
2answers
339 views

Apache conf: how to specify subdomain in <Directory /path/to/subdomain> when using mod_vhost_alias for wildcard virtual hosts

To start with, we wanted a request to *.example.com to be handled by a corresponding /var/www/*/ directory, and we have got this working by using mod_vhost_alias with VirtualDocumentRoot, as follows: ...
1
vote
2answers
232 views

Mono on Apache 2.28 - vhosts does not function properly

I installed Mono on Windows 7, followed the instructions at http://www.mono-project.com/Using_Mono_on_Windows#Using_Mono_on_Windows and the command prompt worked. Mod_mono was added to httpd.conf, ...
0
votes
1answer
72 views

What redirect rule should I use to replace this 301 redirect, in Apache?

I am using this directive to redirect to HTTPS: <VirtualHost *:80> ServerName foo.bananas.net Redirect 301 / https://foo.bananas.net ...
0
votes
2answers
78 views

Windows sub-subdomain

I have 2 domains ex1.com ex2.com DNS records: MYIP @ my.ex2.com httpd-vhosts.conf <VirtualHost *:1337> DocumentRoot "D:/Webserver/domains/ex1.com/www" ServerName "ex1.com" ServerAlias ...
0
votes
1answer
1k views

Adding virtual hosts without restarting Apache?

I've got Apache 2.28, on Web-Developer Server Suite, PHP 5.38, MySQL latest version, and have got about 5 virtualhosts. This is my latest virtual host, which was a dynamic one: UseCanonicalName Off ...
0
votes
2answers
741 views

Apache Virtual Hosting on OS X 10.7 “Lion” [closed]

I have spent the better part of an hour and a half trying to figure out how to get virtual hosting working under Lion's native Apache server. On my laptop, running 10.6, I was able to get virtual ...