Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [virtualhost]

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

0
votes
0answers
10 views

Shall I use different IP addresses for different websites for SEO? [duplicate]

I have a windows VPS. I already have a website running on it. Its run on a specific IPv4 IP address. Now I want to deploy another two websites on the same server. Now this hosting company offer to ...
1
vote
1answer
20 views

Creating new virtual server or Sub-server breaks all existing domains

Hellow, I have 3 domains and several subdomains in Virtualmin which works fine. For the past 1 year, I didn't do any server maintenance except for updating the packages which shown in the Webmin ...
1
vote
1answer
57 views

VirtualHosts Not Working - Apache - CentOS 6

I have a VPS that has a web app on it and a website. The web app and the website have separate cPanels. Default root directory for web app is: /home/webapp/public_html Default root directory for ...
1
vote
1answer
445 views

How to remove port number from the URL?

I need a help for the remove port number from the URL. I host a site on VPS using xampp virtual host. Everything is working perfectly,but cant access domain without port number EX: www.example.com:...
1
vote
1answer
78 views

Subdomains getting redirected to root directory of virtualhost

I'm trying to have 3 different domains and subdomains on my VPS: pd.example.com intranet.example.com example.com I have configured them, but for some reason each subdomain is getting redirected to ...
0
votes
0answers
220 views

Setup port-based virtualhost on WHM/cPanel environment?

I have root access on the following environment: Bluehost VPS - WHM 70, CentOS 6.1(kvm), Apache2.4(EasyApache4) /SSL enabled Bluehost cPanel seems to indicate deprecating adding a rails app function, ...
2
votes
1answer
35 views

Individual directory options for every VirtualHost in Apache2

I have a Debian 9 server with two static IPv4 addresses. One of them is public and the other one is in the server's VPN subnet (the machine is running an OpenVPN server). There is a DNS server in the ...
1
vote
1answer
106 views

Put WAMP online but hide its server index page

Currently I'm able to put WAMP online and access all my projects from other devices using the host IP address. But what displeases me is the fact that even from other devices, the server's index file ...
3
votes
2answers
280 views

Multiple PHP versions on one Digital Ocean droplet

Is there an easy way of using multiple php versions on one single digital ocean droplet. Basically, I want something like what we have for cPanel (https://documentation.cpanel.net/display/68Docs/...
0
votes
0answers
235 views

localhost/phpmyadmin - 404 error MacOSx Sierra

I'm setting up a php project on my machine's loalhost. This part is working fine, and it's loading the 'index.php' correctly when visiting 'http://localhost'. However, visiting 'http://localhost/...
1
vote
0answers
203 views

Multiple SSL server blocks with nginx on single ec2 instance

I've asked this question before and I think I found a potential answer on the nginx Website, which is to have multiple internal IPs for the Web server to listen on. I don't know how to do that with ...
1
vote
0answers
168 views

Self-hosting and Apache virtual host on a Synology NAS: any security risk?

I have a Synology NAS running an Apache web server with several Virtual Hosts. Currently, each vhost is associated with a different port, and my router is pointing on them individually. I also have a ...
2
votes
1answer
135 views

I have three virtualhosts on my WAMP Stack, one works, the other gets 404'd

Hi everyone I'm new both to this site and to backend web stuff. Thank you in advance for any and all help. Like I said in my title, I have three vhosts, two of which I can point the browser towards ...
3
votes
2answers
330 views

How can the index.html file be served from a sub directory of the DocumentRoot without using system level links?

How can the index.html file be served from a sub directory of the DocumentRoot without using system level links? For example: Let the document root of an apache 2.4 virtual host be dirA Let the the ...
1
vote
3answers
77 views

Should I use VPS IP addresses or VPS domain names in the DNS Settings?

I have recently applied a 'Let's Encrypt' certificate to my VPS. Whilst doing this, I came to learn that I could access my Plesk VPS, through both an IP address (insecure over HTTP) and a domain name ...
1
vote
1answer
298 views

Handling requests to server's IP address

I have an Apache Web Server running some virtual hosts, site1.com and site2.com. What do I do with requests to the server's IP address? Is it safe to allow requests by IP or do I need block, ...
1
vote
1answer
34 views

how to modify virtualhost in WHM?

I generally manage my Linux servers by logging in as root and doing everything from the command line (because I just do small stuff) but I've been asked to take over a WHM/CPanel Service with multiple ...
1
vote
1answer
3k views

How to access a website through a Local Area Network that localhost change to a domain name

I have a problem with accessing the website that I created on XAMPP server from another device on the network. I already changed the HOSTS file: # localhost name resolution is handled within DNS ...
8
votes
2answers
518 views

What is the best practice for redirecting the IP address of a web server when it hosts multiple domain names?

I plan to have 2 separate domain names pointing to the same Apache installation with WordPress multi-site. I can set virtual hosts correctly for each domain, no problems. I can have both domains ...
0
votes
0answers
18 views

Cloud Hosting - Choice of host [duplicate]

I am amateur when it comes to the choice of the web server. I need to host 3 low-to-medium traffic Wordpress websites and I'm looking at budget cloud server options. There are many recommendation &...
2
votes
0answers
112 views

In Virtualmin, change the directory of a cookieless subdomain (subserver) to that of the main site

I want to make a cookieless subdomain in virtualmin. I make a subserver for my main domain server. I want the subserver to has the same home directory as the main server but i can't find how to put a ...
2
votes
0answers
338 views

Apache VirtualHost setup for client / server on same AWS instance

I am trying to setup a ReactJS front end and Wordpress back end on the same AWS instance without a domain name. The AWS instance is running Amazon Linux. I am attempting to use an IP address and port ...
4
votes
2answers
812 views

SSLCipherSuite settings not taking effect from Apache ssl.conf, only when duplicated in each virtual host

I have an odd issue. The SSLProtocol config is getting applied in my ssl.conf file but the SSLCipherSuite config is not. I have tested this by changing each option and running scan with Qualys SSL ...
1
vote
1answer
36 views

Serve a subdirectory out of a parallel server side directory

I have an apache server running with two folders in a subdirectory (/var/www/html/example), a virtual host config in httpd.conf serves URLs from /var/www/html/example/website and /var/html/example/...
1
vote
1answer
56 views

www on domain shows the Apache Test page but bare domain (and other domain) work fine

I just finished setting up my server. Something is a little odd though. I have 2 domains (example.net and example.com) pointing to the same directory /var/www/html/forum. They both show right, except ...
3
votes
1answer
61 views

Phantom vhost forwarding from example.com to example.net

I'm running apache2 on Ubuntu 16.04 LTS, and Let's Encrypt Certbot for SSL certificates. I have two domains. Regardless of http or https, www or non-www, I want them to land at https://example.com ...
2
votes
0answers
63 views

multiple virtual host in apache 2.22 on debian 7 … very strange and inexplicable behavior … someone can try to help me? [closed]

I'm facing a configuration issue that's really diving me nuts ... Basically I'm working as a sysadmin for a customer who use a single server to host many different site, to be more specific: Server ...
3
votes
1answer
514 views

Apache 2.4, trying to turn off DirectorySlash

My dev server (Debian 8.5) has DirectorySlash Off in the conf file for a site, and it works - no trailing slash added, and no redirect on requests for an existing directory. The same directive is in ...
2
votes
0answers
69 views

How to host 2 webapps on the same server

I'm working on a VPS with Ubuntu and I configured a webapp called Pathfinder, it's a third party app for a game called EVE Online. Now I need to add another app to the server but I don't want to mix ...
2
votes
1answer
36 views

Vhosts on Apache Web Server. All in one or in separate .confs

I am trying to have multiple websites hosted on one server, but do not know for sure if I should create the Virtual Hosts for each website contained in one file or have each of them in their own ...
4
votes
1answer
280 views

Domain redirection with virtualhost on cpanel environment

With reference of answer by @TomBrossman here I need to redirect all domain versions to my default domain i.e. https://example.com/. By all domain versions I mean http://www, http:// and https://www. ...
3
votes
1answer
51 views

What virtual host should I serve when someone hits my webserver without a “Host:” header?

I have a single instance of nginx serving several virtual hosts with their respective domains on the same ip address. When someone tries to access my ip, they are served one of them, but since my ...
0
votes
1answer
69 views

Is this possible: Use css from other virtual host?

So my questions is as follows: Say I have a website at /var/www/Electrician and I have a website at /var/www/Restaurant. If these websites use separate host files can I use the same CSS to reduce ...
0
votes
0answers
491 views

virtualmin: how to set ftp user's root directory?

Under virtualmin's "edit users" panel, I set a new FTP user with the home directory being website subdirectory: medias\. When I login to this user, the landing directory is medias\, however this user ...
6
votes
1answer
5k views

Possible to split virtual host definitions into multiple apache conf files?

I have a single server that I use to host a whole bunch of smallish websites. It's recently come to my attention that a service called LetsEncrypt allows me to get an SSL certificate for free. The ...
0
votes
1answer
499 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
32 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 ...
2
votes
0answers
238 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 ...
1
vote
0answers
19 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) under ...
2
votes
1answer
219 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 https://$...
6
votes
2answers
25k 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 ...
3
votes
1answer
3k 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 ...
3
votes
1answer
3k 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 / https://www....
1
vote
1answer
1k 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
167 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 ....
3
votes
1answer
1k 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
609 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
79 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 second ...
2
votes
1answer
1k 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 ...
1
vote
2answers
877 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 ...