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

learn more… | top users | synonyms

0
votes
0answers
19 views

How can I set a vhost environment variable for PHP in CentOS

We use Plesk for the bulk of our vhost work but I assume this would be done in the terminal. We need to set an environment variable that we can grab via PHP: $pw = getenv('APP_DB_PWD');
0
votes
1answer
16 views

Virtual Hosts, apache, mod-jk and tomcat

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
19 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
13 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
35 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
46 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
50 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
49 views

HTTPS on RoundCube & Phpmyadmin

Since 2 months we ordered a new server from OVH. Installed this server with the OVH DirectAdmin image and configured everything like it should be. However there is just one little problem. When my ...
0
votes
0answers
20 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
1answer
63 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
26 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
22 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
31 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
196 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
70 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
151 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
370 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 ...
0
votes
1answer
142 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
1k 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 ...
0
votes
1answer
75 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
29 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 ...
0
votes
1answer
139 views

Setting up my vhosts file correctly in WAMPServer

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
0answers
103 views

Wordpress in Subdirectory of Magento

I'm trying to install a standalone Wordpress in a subdirectory of a Magento installation. The Magento is at the document root and Wordpress is in /blog/. I was originally using a Magento plugin to ...
0
votes
1answer
60 views

How to link www sub-domain to specific vhost DocumentRoot?

Server Environment: Ubuntu 12.04 | Apache 2.2 I have disabled the default vhost configuration using a2dissite default and deleted the default file from sites-available and sites-enabled. I have 3 ...
0
votes
1answer
50 views

apache how to limit per user ip

i have a password protected directory with hundreds of users in htpasswd file. i want to allow download of files on these conditions: check if username is valid (already done). check if another ...
-3
votes
1answer
29 views

VirutualHost not working with live domain

recently I have installed a new cloud server for host 6 site. my problem is my site is not working with my main domain but its working with test domain properly. My virtual host <VirtualHost ...
0
votes
1answer
91 views

Apache Server Not Displaying Site From Correct Directory

I have an apache server setup on Zentyal 3.4/Ubuntu 13.10. I have disabled the default virtual hosts file and enabled one with the following: <VirtualHost *:80> ServerAdmin ...
0
votes
1answer
47 views

How to use vhosts to redirect users to another domain

A web site that we host recently changed it's domain name from www.domainA.com to www.domainB.com My vhost file originally looked like this: <VirtualHost *:80> ServerName ...
0
votes
0answers
221 views

Apache2 vhost config not working (Debian 7)

My Apache 2.4.9 vhost configuration is not working any more on Debian 7. I didn't make any changes and it seems to have broken. Going to my site shows the following in /var/log/apache2/error.log ...
0
votes
1answer
20 views

Does RewriteEngine On enable for all subsequent vhosts

If I have in my conf.d Apache directory 001_vhost.conf 002_vhost.conf ... etc, does Putting RewriteEngine On in 004_vhost.conf enable the Rewrite Engine for 005 006 007 008 etc vhosts, but not those ...
0
votes
1answer
62 views

ngnix vhost setting (with apache) not pointing to my domain

i'm trying to use nginx as proxy for my apache all vhosts. i've set up a config file at /etc/nginx/sites-available/mydomain and i'also created sym link by using a command ln -s ...
0
votes
0answers
27 views

Central VHost for deprecated domains with specific status code and custom responsebody in dependence of requesting endpoint

I have the following scenario: There are multiple domains, which where used by a service which has been shut down a while ago. Hence there are possibly still clients requesting the service I want all ...
0
votes
1answer
108 views

Serve different domain requests to multiple servers (i.e. Apache/Node) all through port 80

What I'd really like to be able to do is run Node, and Apache (or maybe nginx) on the same Raspberry Pi (running Debian for Pi). In the way that apache can set up vhosts for multiple sites on the ...
1
vote
0answers
238 views

Apache2 - 500 server error when trying to access .php file

I have a webserver (Apache2, configured on Ubuntu Saucy Salamander 13.0x). On this server I have the following file in question: /var/www/xxxxx.com/insertToDB.php Accessing this file using GET ...
0
votes
0answers
41 views

ec2 vhosts serving from wrong directory

I've been struggling with this one for hours and must have a really simple error! I'm setting up an EC2 server and thus I've create 2 sub-domains from my currently live site and pointed the A ...
1
vote
1answer
90 views

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have ...
0
votes
1answer
42 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 ...
0
votes
0answers
71 views

WAMP, Vhosts and mod_rewrite not all playing nicely together

I have a client using a Windows 2012 server with WAMP installed. We use PHP 5.4 with mod_rewrite for SEO friendly URLs. All was working well with them until we tried to enable vhosts to set up a ...
3
votes
3answers
244 views

Deny requests for other domains in Apache 2

Let's say I have xy.com running on a server powered by Apache. It's the default virtual host. Now someone has rewritten his hosts file to redirect yz.com to my server's IP. As my server doesn't know a ...
0
votes
1answer
387 views

Apache HTTPS redirect from old domain to new HTTPS Domain

I used to have a domain which used to have a SSL Certificate, it still does have. But I have changed the domain, and I also have a new SSL Certificate for that new domain. I still have users ...
0
votes
1answer
163 views

Apache ProxyPass in Dynamic Mass Virtual Hosting

In order to make my life easier with new vhosts popping up I set up my httpd.conf to use this: <IfModule mod_vhost_alias.c> <VirtualHost *:80> RewriteEngine On RewriteCond ...
0
votes
1answer
185 views

Configure Apache To Return Nothing For Default 443 VHost

I have several vhosts on port 443 and each of these vhosts have the ServerName config option set and also the correct SSLCertificateFile and SSLCertificateKeyFile values as well which vary depending ...
0
votes
0answers
59 views

Apache vhost folder isolation on Windows server

I'm running a web server which has been attacked by a WordPress virus. After clearing all things that haved been drop everywhere in my www folder, I decided to isolate every vhost in their own ...
21
votes
5answers
4k views

A domain I've never heard of resolves to my website [duplicate]

I've discovered (via looking at mod_pagespeed cache entries) that a completely random domain I've never heard of before is resolving to my website. If I visit this domain, my website loads. The DNS ...
1
vote
1answer
386 views

Apache2 SSL websites keep redirecting to the default website

so I have a Apache2 web server fully operational running in ubuntu. I have successfully modified the vhosts file for normal :80 requests and all web sites function correctly. However, once I attempted ...
0
votes
1answer
59 views

Apache - how to use a rewrite rule per vhost?

I have set up a vHost as follows: <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DirectoryIndex index.php DocumentRoot ...
-1
votes
1answer
93 views

apache disable unconfigured subdomains [duplicate]

There is a webserver which has example.com, www.example.com, my.example.com, shop.example.com, static.example.com. All sites except www.example.com is on https. My problem is when I type ...
1
vote
0answers
93 views

Multiple VirtualHosts in vhost.conf on Plesk 11

I have a V-Server running on CentOS with Plesk 11. There I have a webspace with multiple subdomains. I have also a JIRA on port 8280 and a Confluence on 8290 running. My goal is to access JIRA with ...
1
vote
2answers
4k views

nginx default server not working

I'm using Debian, most recent dotdeb nginx-lite. I've read that the first server section found by nginx will be used as the fallback/default section used if there is no specific server section for a ...
1
vote
1answer
64 views

apache/vhosts how to specify what project is loaded at 127.0.0.1

I run MAMP on my mac book and have many projects. I use a single httpd-vhosts.conf for all my vhost configs. In one of my apps I need to have a 3rd party API redirect to my app at 127.0.0.1/[route]. ...