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

learn more… | top users | synonyms

0
votes
1answer
14 views

Automatic vhost folders in apache 2.2

I've currently got the following in my vhost config which is working, however I'd like to modify it. Currently my vhost config looks like <VirtualHost *:8080> ServerName dev ...
-1
votes
0answers
10 views

Configure Apache vHost forwarding

I want to configure my apache server so that an request to subdomain.domain.com/path is forwarded to domain.com/subdomain/path. Can you split the %{HTTP_HOST} in something like %{Domain} and ...
1
vote
2answers
257 views

How do one run PHP-FPM on subdomain?

I run Apache 2.4 and PHP-FPM via ProxyPassmatch in httpd.conf, not vhost (for what it's worth): ProxyPassMatch ^/(.*\.php)$ unix:/var/run/php-fpm.sock|fcgi://127.0.0.1/home/user/www I wanted to ...
2
votes
1answer
1k views

Require ldap-group on apache 2 vhost fails when trying to log in

I have a vhost which I'm trying to get to work with LDAP-authentication. My configuration looks like this: <VirtualHost 0.0.0.0:80> DocumentRoot "/var/www/root/" ServerName ...
1
vote
1answer
1k views

Munin - apache_watch_ plugin, does not show any data in the graphs that shows activity for per vhosts

I am using Munin for monitoring my server. I installed the apache_watch_ plugin so that i could see apache related activity. The graphs for apache_accesses, apache_processes and apache_volume work ...
0
votes
0answers
11 views

Apache 2.4 mod_rewrite on vhost_alias

i have configured apache as dynamic mass virtual hosts. I have serval applications writen in symfony2 with .htaccess Vhost looks like this: <VirtualHost _default_:80> ServerAdmin ...
0
votes
6answers
7k 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/ # ...
5
votes
5answers
14k 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
3answers
790 views

Apache vhost log rotate by date

I've got Apache 2.2 running on Debian 7 (on a VPS), with virtual hosts defined for several different websites. I've set up individual error and access logs for each vhost, but I've not found a way to ...
0
votes
1answer
67 views

Apache Alias - Chiliproject

I'm trying to setup Chiliproject (a ruby application for project management) I have setup my Apache already. However I want the Chiliproject to be like http://abc.com/Chiliproject as I want the ...
3
votes
1answer
101 views

IPv6: ip-based or name-based vhost?

With IPv4 the recommended type of vhosts is name-based since you need only one IPv4 address. IP-based vhosts should only be used if name-based doesn't work (because of TLS for example) With IPv6 ...
0
votes
1answer
29 views

Block access to default vhost in Apache

I have an Apache 2.2 server which has Plesk installed. I have spikes in CPU usage at the same time every day. In the main logs I found the following accesses: access_log 75.143.208.206 - ...
0
votes
0answers
36 views

How to prevent Apache from serving files owned by root?

I run multiple websites on a server using vhosts. I want to configure Apache to just serve files owned by the apache user. Also, only those files should be interpreted by PHP. How can set this ...
0
votes
1answer
19 views

Redirect all vhosts when a certain condition is true

I am trying to redirect all vhosts to a certain url based on the REQUEST_URI. For example if somebody makes a request to www.something.com/condition on my server to be redirected to google.com I ...
5
votes
0answers
114 views

How to automate zabbix web scenarios for vhosts?

I'm new to Zabbix and enterprise monitoring. I've just finished installing Zabbix 2.4. I'm trying to monitor the state of all our vhosts dislocated on different servers. Until now the only solution ...
1
vote
1answer
67 views

How to bind webmin to one specific domain/vhost? [closed]

I'm running a Virtual Private server with three specific domains. Let's say example1.com, example2.com, example3.com. I installed webmin on this VPS to peform some easy tasks and just to manage some ...
-1
votes
1answer
46 views

Do I need a wildcard cert if I'm running two SSL websites off different ports?

If I've got two vhosts for two different websites running off 8081 and 8082 (both SSL), do I need a wildcard cert? The hostnames resolve to the same IP but seeing as they are running off of different ...
0
votes
1answer
90 views

Apache 2.4 mod_rewrite in Vhosts not working in WAMP local server, but working in .htaccess

I had some mod_rewrite rules in Apache 2.2 local dev server and they were working fine. Now After upgrading to Apache 2.4, I am trying to do a simple mod_rewrite rule and it is not working. It is ...
1
vote
1answer
789 views

How do I have an Apache site in a subdirectory, when the root is ProxyPassed to something else?

I have shellinabox running on a subdomain through HTTPS and using HTTP Basic Access Authentication using the vhosts file below: <VirtualHost xx.xx.xx.xx:80> ServerName ...
0
votes
1answer
33 views

Setting up VirtualHost - All Point to same host

I am trying to set my domain yfcclub.ga to folder /var/www/yfc while leave localhost and all other domains to /var/www/html in ubuntu. My vhosts.cof file is: <VirtualHost _default_:80> ...
0
votes
0answers
35 views

How to setup one virtual host configuration for multiple subdomains

Is it possible to setup one virtual host configuration for multiple subdomains using some sort of pattern matching? What I want to achieve is something like the following: <VirtualHost ...
0
votes
1answer
17 views

VHost for flask/mod_wsgi cripples previously working page-serving

I've managed to get Apache to serve a dynamically generated (by Python/flask/mod_wsgi) "hello world". I point my browser to http://pipad.org/foo and it displays "hello world". That's being ...
-1
votes
1answer
34 views

Apache 2/httpd vhost dynamic documentroot

I have an app in folder /var/www/test Also there is an "sub-app" in folder /var/www/test/subapp There is another index.php inside /var/www/test/subapp and If user will type test.com the index.php ...
0
votes
0answers
37 views

How to avoid redirect loops in apache vhost

I have tried the following setup and get loops: <VirtualHost *:80> ServerAdmin my@example.org ServerName www.example.org DocumentRoot /var/www/../../../ ... </VirtualHost> ...
0
votes
3answers
50 views

Am I correct that I still need vhost records for users pointing a CNAME record at my application?

A user gets a subdomain in my application, customer.myapp.com. Since users will want to use their own custom domain I'll expect them to setup a CNAME record pointing customer.com to ...
-5
votes
2answers
40 views

finding all sites hosted on a nginx server [closed]

So is it possible to find out every single site (vhost) hosted on a nginx server ? For example Nginx config : server { listen 80; server_name domain1.com; } server { listen 80; server_name ...
0
votes
3answers
24 views

Domain without www redirect to external service

I'm wondering what I'm missing: I've got a vhost working as follow: <VirtualHost *:80> ServerName www.mydomain.co.uk ServerAlias mydomain.co.uk Redirect permanent / ...
-2
votes
2answers
95 views

What is the difference between 000-default.conf and just default

I am following a guide to getting vhosts working with Apache2 and most guide are talking about 000-default.conf but I only have "default" in /etc/apache2/sites-available/
0
votes
2answers
130 views

Disable Apache module in vhost

How could I disable an Apache 2.4 module in a VirtualHost configuration using Ubuntu 14 LTS server? The modules is placed in the /etc/apache2/mods-enabled/ folder but I want to disable it for one ...
0
votes
1answer
197 views

apache vhost redirect all subdomains to root (SSL vhosts) [duplicate]

How to redirect all subdomains to the root domain? It works for non-SSL domains, but doesn't work for SSL domains!? eg Works! wee.domain.com => https://domain.com www.domain.com => ...
0
votes
2answers
68 views

How to rewrite URI from root if file doesn't exists in folder?

I have a static folder which is not in my document root. I would like to redirect all the files that are not present in document root, but are present in the static folder. (So if the same file is in ...
0
votes
0answers
87 views

How to run 2 fast-cgi (php-fpm) websites on an nginx server?

I have nginx running with a few vhosts for different domains. One of them uses php-fpm. I need to add another vhost(for a new domain) that points to a new directory and that also has to use php-fpm. I ...
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 ...
0
votes
3answers
90 views

Limit scope of an apache vhost .conf alias

We have a vhost conf file which is a catch-all in a multi-tenant scenario, however there's a requirement for one of our clients to have a specific alias declaration which is currently defined like ...
0
votes
1answer
90 views

Is it possible to have multiple <Directory>'s in a vhost.conf? [closed]

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
2answers
21 views

NGINX with “serverpool” as the LB for DIFFERENT DOMAINS on same Apache Servers?

I have nginx as a LB. And the 2 Apaches as the web servers. Lets say i got different domains: www.example.com checkout.example.com Both domains will be in same 2 Apache Servers. But ofcoz under ...
0
votes
1answer
110 views

How to create an error_log in each's vhosts httpdocs directory

Running a CentOS 6.4 server with Plesk 11 and virtual hosts for each client/domain. What I'm now trying to accomplish is to auto-create an error_log in each user's httpdocs folder in case of problems ...
2
votes
1answer
81 views

VHosts config location [closed]

I removed Plesk from my server and now I'm trying to figure out how the virtual hosting works. My etc/apache2/apache2.conf and etc/apache2/sites-available/default both appear to point to /var/www/ ...
-1
votes
2answers
531 views

Techniques for securing mod_php for shared hosting (WAMP)? [duplicate]

I've setup a web server for production use. The OS is Windows Server, and it runs Apache 2.0 and PHP 5.3 as an apache module (and MySQL too...). It is used to host several virtual hosts (Apache ...
0
votes
1answer
346 views

Setting up my vhosts file correctly in WAMPServer [duplicate]

I am trying to setup an mobile app that I have received from another dev locally on my machine, this is a cordova based mobile app that is basically html5/javascript etc.. I have added the following ...
0
votes
1answer
61 views

virtual host in nginx not working

I'm creating virtual host using nginx with following configuration: server { listen 7001; server_name example.com; location / { root html; index index.html ...
0
votes
0answers
10 views

Directory directives with auto vhost-conf

I've set up automatic virtual hosts using homebrew. my httpd-vhosts.conf file is the following. It works fine except I need to be able to add some code for each website. Listen 8443 NameVirtualHost ...
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 ...
2
votes
1answer
207 views

Globally disabling static content access logging for all sites in Nginx

I'm trying to globally disable access_log and log_not_found on all static content and for all vhosts running on the same nginx instance. In order to manage global settings inside the server {} block, ...
1
vote
2answers
101 views

Apache2 disable catch all virtual host

I have a server (Ubuntu 14.04) where I host several websites. I have added the following Apache2 configuration files in /etc/sites-available; and I have enabled those sites (symlink to ...
0
votes
1answer
32 views

Apache subdomain and hosts rewrite

So here's the basics of what I'm trying to do. I have 2 servers, one live and one dev. Live has 2 domains attached to it. For simplicity sake we will call them a.live.com and b.live.com. Dev has a ...
0
votes
1answer
2k views

Apache virtual host is being ignored in Vagrant box

The issue I'm having is that when I visit http://d7.subdomain.example.org from my host machine, it takes me to the default apache It Works page. I'm on a Mac host with a Ubuntu 12.04 Vagrant box with ...
0
votes
1answer
48 views

Apache2 vhost *:80 vs ip:80

I have pretty simple question, but still I have not found clear explanation of that. What is the practical difference between *:80 and some_ip:80 in virtual host conf? Is it like *:80 listens on all ...
0
votes
2answers
404 views

Different subdomains, apache responding with the same vhost

I have a VPS in Digital Ocean, running ubuntu 14.04 and apache 2.4.7, DNS is also managed in DO. I have one domain let's call it thedomain.com I've been trying to configure 3 subdomains along with ...
3
votes
3answers
6k views

Conflict between SNI and HTTP provided domains

I have recently moved a WordPress website with a smal lstore from one hosting provider to a server of my own running Ubuntu Server 12.04.2 LTS and Apache 2.2.22. I require SSL for the store. I setup a ...