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

learn more… | top users | synonyms

0
votes
1answer
2k 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
828 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 @ ...
5
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
6k 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 ...
13
votes
3answers
21k 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
351 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
467 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
134 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
394 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
1k 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
409 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
386 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
78 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
81 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
2k 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
78 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
121 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
108 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
416 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
3k 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
69 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
1k 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
369 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
519 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
157 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
310 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
61 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
143 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
95 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
162 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
286 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
236 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
326 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
150 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
418 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
13k 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
159 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 ...
4
votes
1answer
6k 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
271 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
551 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
241 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
1k 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
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
258 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
132 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 ...