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

learn more… | top users | synonyms

5
votes
2answers
8k views

Wildcard vhosts on Nginx

I've just installed Nginx on my server and am extremely happy with the results, however I still cannot figure out how to insert wildcard virtual hosts. This is the [directory] structure I'd like: -- ...
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 ...
2
votes
2answers
81 views

apache2 points non-www to root instead of website folder

I have few different vhost created and every one has its own folder in /var/www/ like this /var/www/example1/ /var/www/example2/ Now, when I type url with www www.example1.com it points to the ...
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 ...
1
vote
2answers
235 views

Mono on Apache 2.28 - vhosts does not function properly

I installed Mono on Windows 7, followed the instructions at http://www.mono-project.com/Using_Mono_on_Windows#Using_Mono_on_Windows and the command prompt worked. Mod_mono was added to httpd.conf, ...
0
votes
1answer
169 views

Nginx vhost configuration questions

I have a NginX vhost, where all static content is served by nginx and anything that's not found or ends with php proxies to apache. Just wanted to check if I have locations right: location / { ...
20
votes
1answer
6k views

nginx name-based virtual hosts on IPv6

I have an nginx server serving up nearly half a dozen different websites. It's running on a Linode that just got IPv6 native support (Dallas data center), and I'm trying to configure most of my sites ...
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 ...
2
votes
2answers
10k views

Apache 2 Symbolic link not allowed or link target not accessible

My apache server runs as user foo. I have some Rails applications in /home/foo/app1 /home/foo/app2. Each of them has an vhost <VirtualHost *:80> ServerName app1.foobar.com ServerAlias ...
4
votes
2answers
1k views

vhost setup for multiple SVN repositories on same server

I have 2 svn repos on my EC2 instance. They are located in /ebs/svn/repo1 & /ebs/svn/repo2. I have created a domain alias svn.mydomain.com, to point to the parent directory of above (/ebs/svn). ...
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
vote
1answer
200 views

Redirecting a specific URL to a different vhost in apache

I have two versions of a very small ruby-on-rails apps running on my web server. One is served externally (production) and one is served only on an intranet URL (staging). So I have two Virtual ...
0
votes
2answers
1k views

Apache Canonical Rewrite with Passenger (mod_rails)

I have a rails app served via Passenger (mod_rails) that I want to have a canonical URL. I want all requests to go to http://mydomain.com (so, rewrite http://www.mydomain.com to http://mydomain.com). ...
5
votes
1answer
3k views

Serve http (port 80) and https (port 443) on same VirtualHost

I need to setup my VirtualHost on Apache to serve on both http and https (using standard ports) If I enable the SSL Engine (as per below) - I get an error when on port 80. The reason is, parts of ...
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
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 ...
0
votes
2answers
780 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
702 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 @ ...
0
votes
5answers
4k 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
1answer
219 views

Running Apache as different users for separate vhosts

I have a server running multiple websites, with each website configured as a separate vhost. Some trusted users require shell access to the web server, but in an effort to prevent abuse and accidental ...
0
votes
1answer
159 views

Understanding vhosts settings

Ok so i have a server and I want to put a few applications on and i am having vhost configuration problems. Here is what i have and I want some direction on what i am doing wrong...ok so the first ...
0
votes
0answers
76 views

What is wrong with this Vhost setting?

I posted a question about this issue earlier but i am pasting the vhost file here to show that i am going to the same location when i go to nacc.biz and kadence.tv if you look at the bottom of the ...