0
votes
1answer
26 views

SIMPLEST way to proxy name-based virtual hosts

Right now I'm doing this with the following Apache directives to map host names to port numbers: NameVirtualHost *:80 <VirtualHost *:80> ServerName local.stardust-game.com ProxyPass / ...
1
vote
0answers
18 views

Make nginx config like apache2 virtualhosts

I have web server with apache2 with many subdomains on it like, domain.com, abc.domain.com, def.domain.com etc. etc. Now I got a new nginx server and want to set it up like apache2, so to test I ...
1
vote
1answer
43 views

Location directive not working

For my NGINX server I have a virtual server set up just to dish out static content. At the moment I'm trying to set it up so that images have an expiry date. However, when I create a location ...
0
votes
1answer
112 views

Setup an apache Virtual Hosts on Debian 7

I tried to setup an apache virtual host on a fresh debian 7 installation like following: applied steps 1.Install apache server: apt-get install apache2 2.create my new derictory: mkdir -p ...
0
votes
0answers
53 views

Connecting to Webserver(Nginx) from within GuestOS (VMware Player+ NAT) inside Debian from outside

I currently have a Server (Debian 7.3 , Kernel 3.2.0-4-amd64) with VMware Player 6 installed which is hosting a guest OS(Ubuntu Server) with Nginx running on it. I want the NGINX to serve webcontent ...
0
votes
1answer
61 views

OS X Server ignores virtual hosts

I have a OS X Server 10.8 [with the Server App]. I have enabled the websites service and I've added the path to /Volumes/dev1/http as the root for my Server Website. I've edited the file in ...
1
vote
2answers
80 views

How to configure multiple apache virtual hosts on multiple ports?

I have a server with one IP address. I want to run several virtual hosts in an Apache 2.2. And I want all virtual hosts to be accessible on port 80 (plain http), 8000 (plain http) and 443 (ssl). For ...
0
votes
1answer
99 views

Why is apache2 using the default vhost if I request a domain that is the same as the servers hostname, and how can I prevent it?

I have a website that I want to be able to reach using http://mydomain.com as well as http://www.mydomain.com Recently I configured my servers hostname to mydomain.com I have installed apache2 in ...
0
votes
1answer
61 views

How to make undefined host go to default Page in apache2 virtual hosts

I am using named Virtual hosts NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin ramesh@thegeekstuff.com DocumentRoot "/usr/local/apache2/docs/thegeekstuff" ServerName ...
0
votes
2answers
51 views

Apache VirtualHost: Moving from one site to “single server, 2 sites”

Currently, I have a single production website running on Apache/2.2.3. I use mod_rewrite extensively and have about 200 RewriteRule's. Now I need to add another website from a second domain name to ...
0
votes
1answer
22 views

Directing a live domain to a virtual machine via hosts

Here's the goal: I want www.foo.com, which exists in the wild and is currently redirecting to www.foobar.com in the wild, to resolve to my vm site. The VM version of this site is a complete rebuild ...
1
vote
1answer
331 views

phpMyAdmin rewrite for nginx

I am trying to configure Nginx so that I can access PhpMyAdmin from a subdirectory (aka domain.com/phpmyadmin). The code provided below seems to work for me although I don't want the alias to be ...
0
votes
1answer
230 views

Can HAProxy load balance a remote site, while the server it runs on hosts another?

Bit of an odd question, and I know it's not ideal, but still..... I currently have a virtual machine that acts as a web server using Apache. This hosts a couple of different sites, with that being ...
0
votes
1answer
101 views

apache2 incomprehensible https redirect

I've got a question about apache2 and Virtualhosts. I declared some in my /apache2/sites-available/ownsites in order to get access via different domains and subdomains, for example: <VirtualHost ...
1
vote
0answers
136 views

nginx does not respect “root” directive

I'm running an EC2 instance with Ubuntu and trying to setup virtual servers for two domains without luck and cannot figure out why. My web documents are located in /var/www/<domain> and ...
2
votes
4answers
98 views

apache port number [closed]

For each development sites I want to have a unique port number. For instance, domain.com:1234 This is what I have in my httpd.conf file. After restart the page domain.com:1234 is not showing in the ...
0
votes
0answers
219 views

virtual hosts on lighttpd can't load

Thats what I did: Added following code to lighttpd.conf $HTTP["host"] =~ "(^|\.)test\.com$" { server.document-root = "/home/test" } created /home/test Restarted Lighttpd but it doesn't load ...
1
vote
1answer
454 views

How to configure g-wan to use virtual hosts?

Say I have a domain foo.com and a server accessible at 50.60.70.80. I have configured the DNS entries so that foo.com and www.foo.com point to 50.60.70.80. I have g-wan running on the web server. Now ...
1
vote
2answers
346 views

How to block Spiders / Scrapers by REMOTE hostname / domain for all Virtual Hosts in Apache?

I've seen plenty of robot.txt stuff, and some mod-rewrite solutions that looked promising… but haven't been able to find a simple solution to block Spiders / Scrapers / whoever the hell I want to ...
1
vote
1answer
352 views

Performance implications of multiple Virtual Hosts in Apache?

The suspicion may be completely inaccurate, but my guts tell me running multiple <VirtualHost>ServerName site.domain [...]</VirtualHost>-statements on the same Apache server (same ip) ...
0
votes
2answers
337 views

Is it possible to run two webservers on the same port on the same server? E.g., Apache and Lighttpd [duplicate]

Possible Duplicate: Running two services on port 80 I have a QNAP TS-459 Pro II that comes with an Apache webserver which runs on port 80. I'd also like to run a small Sinatra app; also on ...
0
votes
1answer
286 views

Wildcard vhost subdomains with 301 redirect

At the moment I create a .htaccess file which redirects non-existent sub domains to the root URL. E.g <VirtualHost *:80> ServerAdmin www@example.co.uk ServerName example.co.uk ...
2
votes
2answers
4k views

Howto use Apache virtualHost with etc/hosts

I'm trying to have http://www.mysite.com and http://test.mysite.com running on a production webserver, and now I'm doing some basic tests in local machine before transfering the datas on the ...
0
votes
1answer
93 views

Can I share my vhost to my local workgroup?

Scenario: 10 Windows XP computers one Airties 206 ADSL modem workgroup network computer A runs Apache web server in computer A set some virtual host name for some folder in apache Question ...
3
votes
2answers
595 views

How do I mange permissions for multiple users editing the same code on my server?

I have a server that a few different coders will be using to work on various websites. Each coder will need to have access to each website. There's two 'clean' methods I've come up with to do this ...
2
votes
1answer
532 views

How to analyze which virtual host account is most greedy?

Hi there and sorry if this is too noobish. I've tried to find the answer myself as I usually do but I failed. What is the best practice when I need to analyze which virtual hosts are consuming the ...
1
vote
2answers
739 views

Choice of document root for virtual hosts

I'm investigating the configuration of Name-based virtual hosts, under apache, for the provisioning of a main domain, and its sub-domain. I've found one example on the web that suggests a ...
0
votes
4answers
980 views

Ubuntu: Apache access forbidden error

I've been experiencing a problem with my virtual hosts, I don't understand why apache looks for /home/* directory if my virtualhosts' directory is somewhere else? tail -f ...
0
votes
1answer
415 views

virtual hosts overlapping in debian apache2

I have a domain domain.com and a subdomain sub.domain.com . In apache2/sites-available I have 2 vhosts files: domain and sub. When I do a2ensite sub the subdomain overwrites the domain, so when I go ...
0
votes
2answers
338 views

Is it possible to setup and Svn repository on an existing hosted web server?

In this case I don't have full access to it. (hostgator) Can I install/use a svn repository for my code ? I'd like to kill two birds with one stone since I already run a website off of it.
0
votes
1answer
901 views

How can I run JBoss Application Server and Apache on the same server?

If multiple sites are hosted within a single server, how can someone able to use Apache for PHP and JBoss for Seam. Example: example.com -> servered using PHP example2.com -> ...
1
vote
1answer
286 views

Setting DNS for a Virtual Host on Same IP

I have multiple domains hosted on one server with just one IP address, it was previously setup by other people and past on to me and I have had to change Domain Providers and have to setup the DNS ...
0
votes
4answers
593 views

Media server and Web server — same IP address, how do I set this up?

Hi I'm trying to build a website where users can upload images. I am wanting to have a seperate media server to host the images, so that the web application can point to the images like ...
0
votes
2answers
1k views

Bind VirtualHost to network interface

In Apache2, is it possible to bind a VirtualHost to a different IP interface than other virtual hosts, or the server's default Listen address? The goal is to have a web server that serves some ...