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

learn more… | top users | synonyms

1
vote
1answer
693 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 ...
0
votes
1answer
213 views

Problems with Vhost on Ubuntu 12.04 + Apache2

maybe somone can point me in the right direction with this. A Domain (kat.mydomain.de) pointed to a Ubuntu Server. We set up a new server and changed the Ip adress of the url to the new Server Ip. ...
0
votes
1answer
24 views

apache location directive spanning virtual hosts

I have a simple question. In my environment there is a apache configured like this. <VirtualHost 1.1.1.1:80> ServerAdmin a@example.com DocumentRoot /apps/docroot/ ...
2
votes
2answers
755 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 ...
1
vote
1answer
64 views

“Masquerade” mail sender on a multi-domain shared hosting [duplicate]

I've a single host with CentOS 6.3. I manage that host via SSH. The server itself is uname -n: servername.foo.com. On this host I've multiple, unrelated httpd vhosts. The problm is: when one vhost ...
0
votes
2answers
62 views

Placeholders for apache2 VirtualHost

I have a conf like this <VirtualHost *:80> VirtualDocumentRoot /Users/molfar/Sites/%-2+ </VirtualHost> I'd like to dynamically set error and access logs paths. I tried the following ...
0
votes
5answers
241 views

Reject HTTPS connections to other hostnames

I have an SSL certificate installed and working for my website, however, 5 different domains all point at the same host, and if a user is directed to https://(the other four) they get a big angry red ...
0
votes
2answers
43 views

how to deny outside access to multiple vhost sites with one config?

We run multiple sites off one server using vhosts. On one Friday night, we found ourselves with an issue where we needed to kill outside access to all the sites. At the time, we found ourselves ...
0
votes
1answer
181 views

Mac OSX 10.8.4 - Apache - Setting up Virtual hosts

I can't seem to get my virtual hosts working: I have an /etc/apache2/users/scottr.conf set up as: <Directory "/Users/scottr/Sites/"> Options Indexes MultiViews FollowSymLinks ...
1
vote
1answer
171 views

Why the nginx doesn't respond to domain names?

I have nginx with following vhosts: A gitlab vhost: server { listen 443; server_name gitlab.mydomain.com; # e.g., server_name source.example.com; server_tokens off; # don't show ...
-1
votes
1answer
233 views

SSL works fine, how can I add in https redirection from http?

Hi I'm having major problems with a server, SSL works perfectly when connecting with https://..., I need to set up redirection from http to https. This is my ssl.conf, CentOS-6, with one IP address. ...
1
vote
1answer
165 views

nginx as proxy multiple vhosts

Runing Windows Server 2008 R2 nginx on port 8080 Apache on port 80 Apache is hosting 5 websites configured within the directive. I'm trying to configure nginx as proxy in front of Apache, (I'll ...
1
vote
0answers
288 views

Configuring dnsmasq to properly work with mod_rewrite on Mac OS X Mountain Lion

I desperately need help. I read an article on the echoditto blog (http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again) and followed the recommendations for setting up ...
0
votes
1answer
35 views

Apache and mod_wsgi prevent user from viewing source

I'm running a WSGI application written in Python with flask on Apache. I have so far configured my vhost correctly to use my application. <VirtualHost *:80> ServerName mydomain.com ErrorLog ...
0
votes
1answer
384 views

Windows Server 2008 R2 Multiple Subdomain DNS Entries + WAMP

I have a Windows 2008 R2 (VPS) server. I have DNS enabled/installed and WAMP as the web server. Initially was going to be IIS but my php application framework I am using is not compatible with IIS. ...
2
votes
2answers
129 views

Add www subdomain to my Wildcard Virtualhost

On my local dev server, I set up test sites with the domain like this projectName.dev Using the setting below in my Apache config file... NameVirtualHost *:80 <VirtualHost *:80> ...
2
votes
1answer
106 views

Apache: Serving same file on multiple vhosts using regex

I have various virtual hosts (vhosts) setup on an Apache 2.2 server such as: examplea.domain exampleb.domain testsitea.domain testsiteb.domain testsite.domain othersitea.domain On virtual hosts ...
-1
votes
2answers
523 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 ...
2
votes
1answer
77 views

vhosts with various hosts and http/https

I have the file underneath in my vhosts.d directory and it's called hosts.conf (from what I gather the name isn't a problem). Now there are various hosts as you can see, if I use http (port 80) no ...
0
votes
1answer
517 views

Redirection issue with multiple domains in nginx

I'm having redirection issues when I try to access DomainB on my browser, for some reason I get redirected to DomainA, what could be going on here? (This is my sites-available folder) Btw I removed ...
-1
votes
1answer
61 views

VIrtual hosts for wild card domain not working

I have configured apache to run alongside with nginx on port 8080. For some odd reason, I also have a wildcard domain defined at my DNS server, I've checked it, and it works(zazazazzaaaz.mysite.com ...
2
votes
1answer
77 views

VHosts config location

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
vote
2answers
66 views

Does vhost order make a difference?

On our Centos webserver, Apache has a httpd.conf file which lists several vhost.conf files. We have five of these files for different sets of domains. One vhost.conf file can have hundreds of domains, ...
0
votes
2answers
1k views

Cant get access to phpmyadmin with nginx under debian “No input file specified.”

I've installed Nginx, php-fpm, mysql and phpmyadmin.. When I type myserver.com I see "Welcome to nginx!". But when I type myserver.com/phpmyadmin, I got : "No input file specified. ". I know it's ...
1
vote
1answer
93 views

What is the best way to compare vhost traffic? [closed]

Recently one of my servers has been subjected to malicious ddos attacks. I have about 12 websites hosted on the server which uses name based v-hosting. I am trying to identify which virtual host(s) ...
1
vote
0answers
88 views

Apache2 conditional section based on port

I don't know much about if statements in apache configuration, and I'm wondering if I can have a section of the configuration applied only if the request is received on a certain port. In short, this ...
1
vote
1answer
2k views

a2ensite doesn't show all sites in /etc/apache2/sites-available

I just did a big reinstall of Apache2 (Debian 2.4.4-6, libapache2-mod-php5 5.5.0~rc3+dfsg) and when it reset, all of my vhosts broke. Wondering if I accidentally purged my vhost configurations, I went ...
2
votes
1answer
267 views

Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change

I have an SSL cert valid for the www. and . subdomains on a domain. That's up and working great. All traffic on http redirects to https, and all bare domain traffic redirects to the www. version. In ...
-1
votes
2answers
392 views

Techniques for securing mod_php for shared hosting (WAMP)?

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

How to have a vhost point to another vhost's sub folder URL

I have 2 Virtual hosts set up like this... vhosts/domain which is accessed at www.domain.com and vhosts/domainblog which is accessed at www.domain.com/blog Well the blog part is not setup yet, ...
4
votes
2answers
92 views

Redirect a subdomain to a directory with vhosts

I'd like to redirect a subdomain to a user directory. So I've tried this config, but it seems redirect to the root folder. <VirtualHost *:80> ServerName epnet.fr ServerAlias *.epnet.fr ...
0
votes
1answer
66 views

How do I configure varnish for my vhosts

I have a centos 5.x server running Apache+Drupal with 13 vhosts. These vhosts are all Top Level Domains. Munin reports heavy swapping for a few days in a month and I discovered that these are mostly ...
0
votes
2answers
71 views

Apache reverse proxy converts links in page to https

I have set up a reverse proxy and on the resulting page the http links show as https, so they cannot be loaded as this is a pure http page. Could this be caused by a bad reverse proxy configuration? ...
0
votes
2answers
69 views

Apache Virtual Host not working on .com domain

I have got a strange problem. I have two domains: mysite.co.uk and mysite.com, which need to point to the same directory on my server. The VHost for mysite.co.uk works perfectly. However, mysite.com ...
1
vote
1answer
142 views

How to enable group-writable suexec-capable CGI scripts?

I have been asked to set up a shared webspace on our department webserver that may be accessed by multiple people and which might be running CGI or PHP scripts. The people maintaining the webspace ...
-1
votes
1answer
251 views

all vhost are pointing to single localtion in openSuse 12.3

I have a virtual host setup for development on my local machine a.local, now I'm adding another vhost b.local, I created another vhost file in /etc/apache2/vhosts.d/ as b.local.conf. When I access ...
1
vote
2answers
73 views

Apache vhost configuration for ServerAlias getting default

Given this configuration: NameVirtualHost *:80 Listen 80 <VirtualHost *:80> ServerName default.example.com </VirtualHost> <VirtualHost *:80> ServerName ...
0
votes
1answer
159 views

apache2: two virtual hosts interfere

I am a developer, not a sys-admin :) I always have been running multiple vhosts in parallel on different ports, but this time something is interfering. I have one vhost which runs a python-based ...
1
vote
1answer
512 views

Limit mod_security rule to one vhost only

I run several domains (via vhosts) with the same apache installation. Some domains require different mod_security rules than the others. In a seperate exceptions.conf file I collect all those rules ...
0
votes
1answer
163 views

Plesk, access all vhosts via default.com/~some-domain.com?

Is it possible to access vhosts/domains created on server but not directly via domain which is created. I would like to have access in the form http://www.maindomain.com/~otherdomain.com or similar. ...
0
votes
1answer
646 views

mod_vhost_alias VirtualDocumentRoot many domains

I'm sure I'm not the first person to encounter this problem, but I cannot, for the life of me, find an answer - although that could be down to not knowing what to search. I have the need to host many ...
0
votes
2answers
228 views

Apache virtualhost strange behaviour

I have multiple domains linked via A-Record to my server. For all of them I created a virtualhost. Some of them run with and without of www. Some have additional subdomains and some have wildcard ...
2
votes
1answer
71 views

Load balancer apache what's wrong

I' trying to make a load balancing using apache but when I got to my (Local)host 'load' got Not found I've been load those mods LoadModule proxy_module modules/mod_proxy.so LoadModule ...
0
votes
1answer
42 views

Apache 301 redirect in vhost

I wish to redirect(301) a url if the url dont have a string present in it. eg: http:://example.com must always redirected to http:://example.com/en http:://example.com/test.html must always ...
0
votes
1answer
180 views

Investigating a phishing complaint

UPDATE: Seems it was a fake email, so not really that urgent, but the questions are still valid. So I received an email about a VPS I host (I'm a VPS hosting company, this is a customer VPS) being ...
0
votes
2answers
779 views

Apache doesn't parse PHP on VHOST while it works on default

I set up a Debian 6 VPS to host couple of small sites and it works beautifully for default one. Next i created new user and copy/paste default vhost file and enabled it with a2ensite and only ...
0
votes
1answer
731 views

Apache - how do I create an exception for a vhost's VirtualDocumentRoot in httpd.conf?

I'm new to Apache, and I'm wondering if there's a way to configure VirtualDocumentRoot to create an exception for just one of my vhosts on my local server. Currently all of my sites are stored in ...
0
votes
1answer
551 views

Apache not accessing a symlink vhost directory?

Alright I've been hitting my head against the desk trying to figure out whats going on with this virtual host. I'm able to load the standard html and php files from the default doc root but can't load ...
1
vote
1answer
1k views

Best practices setting up Apache2 Virtualhosts with Aliases?

I'm setting my Apache2 Virtual Hosts, in a Debian Squeeze server, in this way: filename: whatever.mydomain.com Alias /whatever /var/www/whatever.mydomain.com <VirtualHost *:80> ...
0
votes
1answer
98 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 ...