Virtual hosting refers to the practice of hosting multiple websites on a single server.

learn more… | top users | synonyms

1
vote
0answers
20 views

Apache virtual hosts configuration for MAMP results in new sites going to the same folder

I have MAMP installed in my mac. Why is it that every time I create a new site, they all go to the same folder? Here is my /etc/hosts file: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 ...
1
vote
1answer
35 views

Apache Redirect to another folder, both within and outside document root

I've recently set up a home web/media server and having a few difficulties with a few of the settings. It's working fine for serving webpages etc but I've now reorganised the structure of the main ...
1
vote
1answer
51 views

Need help getting 'www' working for domains and subdomains using Apache & DNS

I've searched through a lot of different posts asking this question and I haven't really seen a straight forward answer on how to get this working. At the moment, with the following settings, adding ...
0
votes
2answers
54 views

Redirect public traffic to a different subfolder, while local traffic remains unchanged

I would like to have local (intranet) HTTP traffic go to the /var/www/html folder while any public traffic goes to the subfolder, /var/www/html/public I've tried this configuration, with some ...
1
vote
2answers
76 views

Domain Name Not resolving with webhost nameservers and without www

Searched all over and tried playing with httpd.conf , nothing works. The domain name can be resolved with www.domain.com but without www its does not resolve. Advice for A Records does not work. I ...
3
votes
1answer
105 views

Updated Apache from 2.2 to 2.4 and now my sub domains are broken

Upon trying to visit any of my subdomains here is the error recieve in my error.log file: [Tue Jul 15 11:17:42.924790 2014] [core:alert] [pid 17309] [client 108.162.241.152:26427] /var/www/.htaccess: ...
1
vote
0answers
129 views

Apache, Rewrite Rule and Directories

I'm using the current virtual host: <VirtualHost *:80> ServerAdmin webmaster@mysite ServerName example.co.uk ServerAlias www.example.co.uk DocumentRoot ...
1
vote
2answers
52 views

backlinks: two domains with same IP

I run several different web pages on different servers (with different IP addresses). These pages are linking to each other in order to boost number of backlinks pointing to my pages. I would like ...
0
votes
0answers
49 views

Google AdSense is not reviewing the URL I submitted, using my local virtual host url instead

I'm very confused. I'm trying to get my site (let's just say www.mysite.com) approved for Google AdSense. I submitted the application using "www.mysite.com" and I got a reply from AdSense saying my ...
0
votes
1answer
55 views

Why is my subdomain not returning anything?

I've set up DNS record to test out using virtual hosts prior to moving one of my wordpress installs out of a subdomain. I want to move from mysite.com/blog to blog.mysite.com. I've tested the DNS ...
1
vote
1answer
172 views

Placing multiple Apache VHost sites in 'maintenance mode' with 1 rewrite rule

I have an Apache2.2 webserver set up to handle dozens of virtual host sites for our organization. I am looking for a simple method to temporarily 'turn off' all the sites by having all site requests ...
0
votes
0answers
8 views

Is there a way to compare the speed of potential webhosts? [duplicate]

I want to get VPS hosting, but don't know according to what should I choose, especially how do I know if its speedy enough?
0
votes
1answer
1k views

Trying to host server for external access - Apache, VirtualBox & Portforwarding

Banging my head on the wall at this stage... Trying to host my Apache site on Ubuntu 12.10 with VirtualBox. Running Windows 8 host. Things I've done: Ensured Apache is listening on ports 80, 443 ...
0
votes
0answers
82 views

Apache VirtualHost Subdomain redirects to IP

I have one VM (LAMP) with a static IP. There are two Subdomains configured on this Machine. If i browse one of the subdomains, it executes the files specified in its DocumentRoot. The problem here is ...
1
vote
1answer
36 views

Apache: Server the same document root from multiple ports

Consider the following apache site file: <VirtualHost *:9000> SSLEngine on ... DocumentRoot /var/www <Directory ...> ... </Directory> </VirtualHost> ...
1
vote
0answers
42 views

Apache2 only first virtual host is working

i have a probelm with this configurations, only the first virtual host is working and other under the same domain point to the first www.firebuggger.com). do you guys have a clue? NameVirtualHost ...
4
votes
1answer
578 views

Apache Virtual Host different depending on client ip?

What I'm trying to accomplish is: 1. A person, with IP 192.168.1.5 loads my webserver (192.168.1.2) and reaches htdocs/ 2. Another person, with ip 192.168.1.6 does the same request, and reaches ...
0
votes
0answers
65 views

How to load the WordPress themes correctly in my local host?

I have a new customer that has send me a WordPress project. So to install the project it in my local machine, I have created a virtual host like the one below in my machine. So I can access like this ...
1
vote
1answer
143 views

SSL works on https://dedicatedip but not https://domain

My SSL certificate works on my apache web server but only when I do https://Dedicated_vps_ip. When I do https://domain.com it just doesn't work. I've tried almost everything. What am I doing wrong? ...
2
votes
2answers
60 views

Running my site using https and a load balancer

I currently have two webservers behind a load balancer that are running my websites. I'm considering buying an SSL certificate for one of my websites and converting it to https. What mechanics to I ...
3
votes
1answer
86 views

Prevent interactions between Apache virtual hosts on the same server

I have a VPS running Apache 2.0, with multiple domains and multiple IPs set. In document root /var/www/html/ I have http://serverA.com and I created a virtual host on folder /var/www/html/serverB ...
3
votes
1answer
294 views

Subdomain configuration

Configure all subdomains to point to the same server IP as the main domain Configure all subdomains in virtual host to point to the same location as the main domain What is the easiest way to do ...
1
vote
1answer
202 views

Virtual host in Apache Zend

I'd like to ask you if you can tell me why I can't get Vhost in Apache to work my Vhostconf is: NameVirtualHost *:80 <VirtualHost _default_:80> ServerAdmin ...
2
votes
2answers
151 views

My virtual server is created but it's not showing anything when I visit the site?

I have created a virtual sever as below for my site: I've specified the folder and domain name: And I created a master zone for the domain, and NS1 and NS2 has been set for the domain. everything ...
2
votes
1answer
194 views

How can I point wildcard domains to a folder in Apache?

I am developing an app using PHP and deploying it on Apache on the Amazon AWS environment. This app requires to be made available to customers from their own chosen domain name? How can I achieve ...
1
vote
1answer
854 views

How do I map some subdirectories to run alongside a Drupal site?

I have a Drupal site running on Apache using the following vhosts file: <VirtualHost xx.xx.xx.xx:80> ServerName bananas.net ServerAlias www.bananas.net ...
5
votes
2answers
123 views

Are webhosts that require NS instead of a CNAME common?

I've just signed up with a webhost (which I prefer not to name) and I'm reasonably happy with it. The only nit was when I was ready to put a site online and I asked the support line to what name I ...
1
vote
2answers
595 views

Automatic redirection from http to https with .htaccess authentication in virtual hosting

Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
1
vote
1answer
176 views

Write to an alias directory on Apache

How do I enable writing via PHP to an alias directory. I have the following on my VirtualHost: <VirtualHost *:80> ServerName domain.com ServerAlias m.domain.com ...etc AliasMatch ...
0
votes
1answer
161 views

Linux Mint 15 + Rails with Apache/Passenger

I am only beginner and try to understand how to configure apach web-server for my RubyOnRails app. I have linux, installed apache2, passenger and apache2-module for passenger. While installing i got ...
0
votes
1answer
1k views

Apache virtual host does not work properly

I have read a lot of information all over the Internet regarding this subject, and can not figure out what I'am doing wrong. I'm trying to host two websites under different names locally under Windows ...
0
votes
1answer
274 views

Apache is redirecting all https requests to one vhost

Apache novice here, We run a server with a few dozen vhosted sites, under apache 2.2.22 on ubuntu 12.0.4. None of them had a SSL before. We had a client request one the other day, and shortly after ...
2
votes
2answers
3k views

Apache2: How to host apps at different ports with SSL?

I'm trying to achieve quite simple task actually. I bind application to a port, I enable SSLEngine at each VirtualHost entry for that port. Everything works beside one thing: if you type url that ...
2
votes
3answers
995 views

Under an Xampp install, I modify the apache httpd-vhosts.conf file and then my Apache server will not start

I have read all the articles but still must be doing something wrong... I modified the httpd-vhosts.conf file to access the project I am working on... I have tried many different configurations and ...
2
votes
1answer
201 views

mod rewrite doesn't work when i added multiple domains

i have redhat linux server and i was using /var/www/html to display my site. By using the following directive rewrite mod was working fine. <IfModule mod_rewrite.c> # Enable mod_rewrite ...
2
votes
1answer
1k views

SetEnv directive not working for localhost VirtualHost but works for other VirtualHost

I have two virtual hosts declared: localhost and test. Both use the SetEnv directive and point to the same DocumentRoot: NameVirtualHost *:80 <VirtualHost _default_:80> DocumentRoot ...
3
votes
4answers
7k views

How do I hide the port in my URL?

What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the ...
1
vote
1answer
111 views

Can't Get a Virtual Host to Work

I can't get a specific virtual host to work. This is the first part of my httpd-vhosts.conf file: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Volumes/Data ...
0
votes
1answer
828 views

Apache server not able to read cookies from Browser

I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
3
votes
1answer
2k views

How can I force a VirtualHost in Apache to not listen for undefined subdomains on 443?

In /etc/apache2/sites-available/example.com: <VirtualHost *:443> ServerName www.example.com DocumentRoot /var/www/example.com/htdocs SSLEngine on ...
4
votes
1answer
374 views

How to organize /var/www/ for multiple users and vhosts in apache

I've been creating new directories for each site in the var folder like this: /var/www -- localhost -- owned by localuser:www-data (+setuid/setguid) /var/www-somesite -- somesite.com, ...
3
votes
1answer
504 views

Apache Virtual Host does not work

I've problems setting up a virtual host on windows7, so that I can develop multiple pages on my localhost. To set up the virtual Host, I've edited 3 Files: httpd-vhosts.conf in apache\conf\extra ...
3
votes
2answers
1k views

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
2
votes
2answers
2k views

How to Add Two Domains ON 1 IP using webmin

I am a new user of webmin and I have two domains site1.com and site2.net. I have one dedicated IP for the server and I have set site1.com to use following name servers ns1.site1.com and ns2.site1.com ...
5
votes
2answers
11k views

Redirect Permanent and https

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html The / (tail ending slash) is ...
-4
votes
1answer
136 views

How can set a local host ip address to forward to local host virtual host domain name [closed]

I want to forward different domain names to single IP Address (local for testing), but how can i recognize in pc that which domain name should be linked to which folder? For example in my windows ...
1
vote
1answer
143 views

Subdomains regarding name servers/domains

I know how to configure subdomains like sub.example.com on Apache etc. My question is, do I need to make any changes to the name servers/domain that is provided to me? Would it work the same as ...
1
vote
1answer
175 views

Assign subdomains to separate ports on web server

I have set up an Abyss web server as a little experiment, and I want to know if it is possible to assign subdomains to different ports on the machine the web server is running on. I have a couple web ...
1
vote
1answer
86 views

Apache2 “pseudo” doc root

I have several folders in my /www folder that contain various applications. To keep things organized, I keep them in their own folders -- this includes my base application. Examples: phpmyadmin = ...
1
vote
1answer
1k views

Symbolic link not allowed or link target not accessible: /var/www on Ubuntu 11.04

I am getting a 403 when i access http://mayfieldafc.local/ upon looking in the Apache logs I am getting: [Wed Nov 16 12:32:59 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target ...