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

learn more… | top users | synonyms

2
votes
1answer
160 views

CSS and JS are loaded from the IP address rather than from the appropriate subdomain host name

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
163 views

Google AdSense is not reviewing the URL I submitted, using my local development URL instead

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

How to hide awstats url parameters

currently in order to access statistics on my site I access this link: www.example.com/awstats/awstats.pl?config=awstatsconffile.org all is working fine, but what I want to achieve is simply this: ...
2
votes
3answers
4k 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 ...
0
votes
0answers
22 views

Moving rewrite rules to virtualhost tags instead of directory tags

Currently, I have my rewrite rules in what I believe is in the Directory context. My relevant part of httpd config file is similar to the following: <virtualhost nnn.nnn.nnn.nnn:port> ...
0
votes
0answers
9 views

Redirect multiple sites (HTTP and HTTPS) to a single page (ngxin - ubuntu) [migrated]

I've currently got a floating IP pointing at a server hosting a number of sites, some with SSL, others without. I need to shutdown, backup and resize said server - and was hoping to setup a simple ...
0
votes
1answer
19 views

Despite adding a CNAME record for a subdoman, the webserver is showing the server's default host

I want one subdomain to point to another on the same domain. DNS Records Type Name Value ----------------------------------------- A s1.example.com 10.20.30.40 CNAME ...
0
votes
1answer
18 views

Possible to make virtual servers on hosted web server? [closed]

I own a debian root web server at an ISP. By own I mean, I rent the server with a package, I do not own the hardware and such. No plesk or anything else. All configuration is done by hand (well, a ...
1
vote
1answer
194 views

Virtualhost config: routing and wildcard usage

My VirtualHost config is below: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/example/html </VirtualHost> I ...
1
vote
0answers
29 views

Separate multiple domains with htaccess (solution works on one hosting, not on another)

I have two different domains on one VPS. It's Apache 2.4.7, I remember trying long to set up name based Virtualhosts on localhost to find out Apache Virtualhosts are not supported anymore. (I cannot ...
2
votes
1answer
82 views

Redirect http to https with nginx and rewrite a rule gives redirect loop

I want to redirect http to https along with rewrite ^(.*)$ /$1.php; My nginx virtualhost file: server { listen 80; server_name domain.com; return 301 ...
1
vote
0answers
13 views

Google Cloud Instance Deletes Files When used with Network Load Balancer

I am experimenting with Google Cloud. I was trying to test a VM Instance and Network Load Balancing. Here's what i did: Created an Instance Template => Instance Group => 1 VM Instance (say VM1) ...
6
votes
1answer
2k views

Applying domain name to a directory

I have a Linode instance of Ubuntu 10.4 using the LAMP stack to host an instance of Magento and a couple other things. I currently have Magento set up at: http://123.459.780.123/magento. When I ...
2
votes
1answer
850 views

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as ...
1
vote
1answer
296 views

Redirect https://example.com naked to https://www.example.com

I am redirecting all http:// request to https:// using apache2 virtual host file: <VirtualHost *:80> ServerName example.com ServerAlias www.example.com Redirect / ...
1
vote
2answers
507 views

WAMP VirtualHost 403

I recently installed WAMP, and started developing on its Apache server. Given that my text editor (Sublime) didn't have permissions to write on C disk directly, I changed my default DocumentRoot to My ...
0
votes
0answers
17 views

Virtualmin - Granting *Create database* permissions through command line

I have a script calling the remote API (which calls the command line API) of Virtualmin to execute 'clone-domains' with a --newuser and a --newpass. That creates a user that can access the cloned ...
0
votes
1answer
228 views

Configure Apache virtual hosts - all subdomains to 404

It's the first time that I try to configure apache so I hope you can help me. This is what I want to achieve: All undefined subdomains should lead to not found if they aren't defined Root folder ...
1
vote
1answer
48 views

Lowercase 301 Redirects - Site Assets Disappear

I am trying to force all my URLs to be lowercase, but in doing so, I lose the connection to all my site assets. I've added this to my in my .conf file: RewriteMap lc int:tolower And this to my ...
0
votes
0answers
65 views

DNSMasq Not Resolving Addresses on Mac Local Web Development Environment

I've setup my local web development environment according to -http://mallinson.ca/osx-web-development/. I have done this before, and I got on a new computer, and am trying to do it again. I'm running ...
3
votes
1answer
371 views

Multiple Apache vhosts with Basic Auth & SSL

I'm just getting started using Apache and I pretty much have everything configured the way I want, I'm just having trouble with one aspect. A quick overview: I have a document root of "/var/www", ...
2
votes
2answers
135 views

Apache wildcard domains - Restrict number of subdomain levels

I would like to setup a VirtualHost which allows for wildcard subdomains such as foo.sites.example.com and bar.sites.example.com. I do not, however, wish to allow multiple level subdomains such as ...
1
vote
1answer
50 views

Multiple VirtualHosts with wildcards

I have a three VirtualHosts. The second two utilize wildcards. www.example.com *.sites.example.com (i.e. foo.sites.example.com) *.*.sites.example.com (i.e. foo.bar.sites.example.com) For the ...
1
vote
1answer
93 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 ...
2
votes
2answers
5k 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 ...
1
vote
2answers
215 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 ...
2
votes
1answer
367 views

Apache Unable to open logs: /Applications/MAMP/Library/${APACHE_LOG_DIR}/error.log

I am trying to run a project built in Ubuntu with PHP on fat-free framework. I am using MAMP on macOS Yosemite 10.10.1. I imported a database successfully through phpmyadmin & following these ...
2
votes
1answer
286 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 ...
5
votes
4answers
12k 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
211 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
205 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 ...
1
vote
2answers
819 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 ...
4
votes
1answer
3k 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
142 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 ...
2
votes
2answers
706 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
1answer
71 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
942 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
1answer
2k 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 ...
1
vote
1answer
56 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
52 views

Apache2 only first virtual host is working [closed]

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
1k 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 ...
1
vote
1answer
202 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
69 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
93 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
313 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
339 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
157 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
240 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
1k 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
132 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 ...