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

learn more… | top users | synonyms

3
votes
1answer
100 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
22 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
31 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
18 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
76 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
votes
1answer
45 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
57 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
46 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 ...
0
votes
1answer
32 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
32 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
16 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
30 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
35 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
38 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 / ...
0
votes
2answers
99 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
169 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 => ...
-2
votes
2answers
76 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
63 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 ...
0
votes
3answers
83 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
2answers
20 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
59 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
9 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 ...
2
votes
1answer
183 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
81 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
341 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 ...
0
votes
1answer
105 views

Virtual Hosts, apache, mod-jk and tomcat [closed]

I have a tomcat(running on 8080) application on my cent os server and i can access it with the url: SERVER_IP:8080/myapp and I have my admin panel on SERVER_IP:8080/myapp/admin and I have an ...
1
vote
0answers
69 views

Can not access www with puppetlabs apache module

The vhosts are managed with the puppetlabs-apache module and I can not access the website with www but I can without it. When i use www I get a blank page and there are no errors an any logs and non ...
0
votes
0answers
23 views

VirtualDocumentRoot and subdomains - correct configuration?

I have setup my vhosts file like so (only question related part): <VirtualHost *:80> DocumentRoot /var/www/example.com/web ServerAlias *.example.com VirtualDocumentRoot ...
0
votes
2answers
102 views

How to create a catch all Apache VHOST entry? [closed]

Hi I'm trying to allow users to domain map to us using CNAME's. Our server is running CentOS 6.4 and Apache. When I create a CNAME on another domain we have with the values: test.otherdomain.com -> ...
0
votes
1answer
115 views

Apache 2.4 AliasMatch NotWorking

I used to Alias have as below for /CollabPortal14300 which was working fine Alias /CollabPortal14300 D:/Dev/Projects/CollabPortal/CollabPortal/target/CollabPortal/ Alias ...
0
votes
1answer
280 views

Nginx config: two applications under same domain [duplicate]

I have two applications: HTML+JS frontend and PHP backend. I would like to set Nginx up so that both are served from the same domain. Requests to the backend are made uing URLs starting with /api. My ...
0
votes
0answers
25 views

How do I block all requests by default in vhost configuration?

I am setting up a site using standard apache vhost but I have multiple domains pointed at the server. I know the first vhost catches all the other names even if they are not listed under the vhost. ...
0
votes
2answers
178 views

VirtualHost's server name does not work (shows /var/www), all aliases do

I have installed apache 2 and created and enabled a virtual host. The virtual host has: ServerName example.com ServerAlias *.example.com ServerAlias foo.com ServerAlias *.foo.com ...
0
votes
1answer
27 views

From where should I serve the vhosts [closed]

I used to create a user called company_xyz and serve the httpdocs file from /home/company_xyz/web/project1/public and so on for each different project. Is there a guideline or best practice on where ...
0
votes
0answers
60 views

Is mod_lua a stable solution for dynamic apache vhosts?

I've been looking for a dynamic vhost solution for apache to support a SaaS product with custom domains. Due to the requirements of the application it must run apache and ideally the configuration ...
0
votes
0answers
39 views

All my subdomains linked to the same DocRoot

i wand to enable some sub-domains in my apche2. I created some vhost files but i always get the same page on every sub.domain. If i enabled only one of the files i get the page of this DocumentRoot... ...
3
votes
1answer
278 views

Apache stops communicating with memcache after creating too many vhosts

I've noticed a very peculiar problem with Apache. I have a very high number of virtual hosts set up - it's around 501. Problems started occuring after vhost number 493. First 493 vhosts work as ...
0
votes
2answers
100 views

Apache2.2 vhosts - disadvantages of using one file with many vhosts

As i am working with Apache2.2 more and more lately this thought crossed my mind (apologies if this seems a 'silly' question, still learning alot) Are there any blatant disadvantages if you use just ...
2
votes
1answer
433 views

Apache2.4 and HHVM as FastCGI - Different settings per VHost?

I just managed to set up a Apache 2.4 server using HHVM in FastCGI mode using that ProxyPassmatch directive. The problem is, I can now set a differen root path for each host but I can not set any ...
0
votes
1answer
2k views

Apache vhost configuration for port forwarding

I am trying to get the hang of the reverse proxy features in Apache. I am using the Bitnami RubyStack on Windows Server 2012. The following configuration makes Apache not even to start - the error.log ...
1
vote
1answer
230 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 ...
0
votes
1answer
3k views

nginx proxy_set_header x-forwarded-proto seemingly not working

Since i am a beginner in nginx proxying i have a question. The gist of it: Where does an nginx proxy set defaults for php's $_SERVER["HTTP_X_FORWARDED_HOST"], $_SERVER["HTTP_X_FORWARDED_SERVER"] and ...
1
vote
1answer
279 views

Setting up IPv6 on Apache2

Currently I have the "ports.conf" with the following content: NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> Listen 443 NameVirtualHost *:443 </IfModule> <IfModule ...
0
votes
2answers
36 views

Apache: Can I disallow access to a dir except when via a vhost?

If we assume I have a server called machinename.ip which resolves http://machinename.ip to default root (/var/www/html), and resolves http://www.example.com via vhosts file www.example.com to ...