Questions tagged [virtual-host]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

How to route web application on some port to my subdomain

I'm hosting my domain on my apache2 server and i want to add a web interface on a subdomain. I have my website on port 80 and droppy with webinterface on port 8989. How do i route droppy interface to ...
user avatar
0 votes
1 answer
598 views

Redirect all non-root routes to index.html on Amazon Linux 2 and Apache

An Amazon Linux 2 instance is using Apache to host an Angular 7 app. The Angular 7 app includes not just index.html, but also several .js files and a subdirectory named assets. What specific ...
user avatar
  • 5,124
1 vote
2 answers
15k views

Could not reliably determine the server's fully qualified domain name

I was following this tutorial to setup two virtual hosts in Centos 7. The issue is i am getting the following error while restarting the httpd. [userme@server ~]$ sudo systemctl restart httpd....
user avatar
  • 121
2 votes
1 answer
306 views

How to Stop a specific virtualhost in apache2

let's say I want to stop only the example2 VirtualHost. How do I do it? sudo service apache2 stop will stop all the VirtualHosts. I want example1 to keep running <VirtualHost *:80> ...
user avatar
0 votes
2 answers
443 views

Unable to load the AWS ELB on 443 port but able to access ELB url on 80 port

I have 2 webservers under AWS ELB. Each webserver has one virtual host file and bundle.crt, .key files. When I tried to load the ELB with http then its directing to the webservers fine but when I use ...
user avatar
  • 11
0 votes
1 answer
774 views

Apache reverse proxy redirects every address to the same vhost

I have installed a webapp in a virtual machine on my server (both running Debian 8 and Apache2). I used a reverse proxy on the host machine to redirect all the connections made to https://webapp....
user avatar
  • 709
0 votes
1 answer
103 views

Apache redirection based on referrer in CentOS 7

How can I configure Apache httpd on a CentOS 7 server so that requests for any path under home.mydomain.com are only served if the referrer for the request was from a path under mydomain.com? And so ...
user avatar
  • 5,124
3 votes
1 answer
699 views

Port 81 for http is redirecting to 80

I have created port 80 and 81 for my Apache. Below is the configuration. Listen 80 Listen 81 <VirtualHost *:80> DocumentRoot "/var/www/html/wp" ServerName www.test.tk </VirtualHost&...
user avatar
2 votes
0 answers
234 views

H2O Webserver - Multiple domains - Is possible ? Or current version is only for one domain?

I'm testing h2o server : (some urls ) https://github.com/h2o/h2o/wiki https://calomel.org/h2o.html All works fine with only one domain but when I try to load multiple domains I can't load ...
user avatar
0 votes
2 answers
218 views

Making domain-name only accessible web server with apache2

I have a domain name example.com and a VPS with a static IP address 123.123.123.123. I want the browsers to provide the domain name to access the website content. In pratice I want people see my ...
user avatar
  • 103
3 votes
0 answers
2k views

Use apache virtual host to redirect a subdomain to internal ip preserving passed port

I've been looking for a while to the answer to this question and I seem to find slightly different needs from people asking questions and they get wildly different answers... but none of them seem to ...
user avatar
1 vote
2 answers
69 views

Is there some security restriction preventing apache2 from listening on a high port?

I have configured an Apache2 virtual host to listen on a port above port 80, 8011 in this case. apachectl configtest returns no error in regards on the usage of the high port, yet netstat indicates ...
user avatar
  • 6,697
0 votes
1 answer
1k views

setting up permissions for Virtual Host on Centos 7

I am following a book's chapter on setting up Virtual Hosts. The process is: 1.create a file /etc/httpd/conf.d/example.com.conf 2.set its content to <VirtualHost *:80> ServerName www....
user avatar
  • 335
3 votes
1 answer
3k views

How to setup virtual hosts to point to two diffrent directories

I have one domain and a sub domain which are supposed to point to two different folder, i have tried this help but still i have issues. (https://www.digitalocean.com/community/tutorials/how-to-set-up-...
user avatar
1 vote
3 answers
6k views

Multiple virtual host in Centos 7 is not working together

My server information is Server version: Apache/2.4.6 (CentOS) Server built: Nov 19 2015 21:43:13 I am trying to configure virtual host for 2 different sites: biz.example.com and pin.example.com ...
user avatar
  • 111
0 votes
1 answer
371 views

Adding a Django site breaks my virtual hosts on CentOS 7

I have a CentOS 7 server with about 20 domains all managed automatically with a vhosts file in /etc/httpd/conf.d. I am trying to learn Django and wanted to set up a single domain using it, so I added ...
user avatar
0 votes
1 answer
1k views

Creating a virtual host

I'm using Kali Linux (backtrack Linux) and it already comes with apache, mysql, php (and plenty of other useful languages). I know that of course as with anything, you can programmatically build a ...
user avatar
1 vote
1 answer
413 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
user avatar
  • 101
2 votes
1 answer
3k views

Nginx virtual hosts for multiple LXC containers

I am having the following configuration: I have 5 LXC containers that are running nginx. On each container there are a couple of virtual hosts set up in nginx. That means for a container I have ...
user avatar
0 votes
1 answer
1k views

Configure a subdomain (Virtualhost) for phpMyAdmin

I have a problem with configuring a subdomain (Virtualhost) for phpMyAdmin. My current .conf look like this: <VirtualHost *:80> ServerName php.erichermansson.com ServerAdmin webmaster@...
user avatar
4 votes
1 answer
3k views

Apache redirect to https if the request is not from localhost

I have a Centos 6.7 with apache 2.2.15. I want to redirect all traffic from port 80 to 443 with one exception. The traffic who come from localhost I want to remain on port 80. Now I use this config ...
user avatar
  • 369
3 votes
2 answers
3k views

configuring httpd for multiple domains on same server

A CentOS 7 web server is hosting one public domain, called mydomain.com. The same server also has a separate vpn that hosts two apps for private authorized/authenticated users only. Httpd is set up ...
user avatar
  • 5,124
0 votes
1 answer
3k views

ispconfig PHP not parsing on apache2 virtual host

I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04. I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from https://...
user avatar
0 votes
1 answer
535 views

conf file include wild card for multiple sites?

I have 50 sites with separate databases in drupal 7 set up and manage it in terminal on centos 7 and wondering if there is a way I can avoid having to have them all listed in custom conf file because ...
user avatar
  • 1,463
3 votes
1 answer
3k views

postfix virtual domain on specific IP address

We are running postfix with single domain (example.com) currently and we have appropriate PTR record for that. Now we want to add one more domain but i want to isolate that domain totally, Even i ...
user avatar
  • 1,530
0 votes
2 answers
3k views

Apache Virtual Host not working on Ubuntu 14.04 LTS

I've been using this tutorial to set up an Apache virtual host on my Ubuntu PC. I've created a no-ip domain which I will be using as the hostname of my virtual host. I've followed every step of the ...
user avatar
  • 101
1 vote
0 answers
90 views

Should speed/cache settings go into the virtual host file or the apache config?

Some CMS's or websites don't seem to like all the speed settings we use so we've been putting the following into each virtual host file: # SPEED SETTINGS # --------------------------------------------...
user avatar
  • 185
1 vote
0 answers
663 views

How to change the default site hosted by the ip address of a linux plesk server?

I have a Plesk Ubunutu VPS that had until recently one domain setup. If I accessed the IP address of the server I see the site setup on the domain. The problem is that I've now added a second ...
user avatar
  • 129
1 vote
1 answer
4k views

Apache's 000-default.conf - weird behaviour

I'm trying to achieve a redirect from example.com to www.example.com (non-www to www). My sites-available/example.com.conf file looks like this; <VirtualHost *:80 *:443> ServerName ...
user avatar
  • 131
2 votes
4 answers
20k views

Apache2 not reading sites-enabled/*.conf

So I'm trying to set up my site with Apache on Ubuntu 14.04. I have created a mydomain.com.conf file in sites-available/. It looks like this; mydomain.com.conf <VirtualHost *:80> ...
user avatar
  • 131