Questions tagged [virtual-host]

The tag has no usage guidance.

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

Second Domain in multi Virtual Host Configuration not working

I am running a DigitalOcean VPS with Debian 10, Apache 2.4.38, PHP 7.3.4-2 and MariaDB 10.3.15. Port 22, 80, 443 and 3306 are open. I want to run two websites on this server using virtual host ...
0
votes
1answer
25 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 ...
1
vote
2answers
8k 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....
1
vote
1answer
46 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> ...
0
votes
2answers
328 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 ...
0
votes
1answer
518 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....
0
votes
1answer
92 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 ...
2
votes
1answer
368 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&...
2
votes
0answers
200 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 ...
0
votes
2answers
84 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 ...
3
votes
0answers
886 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 ...
1
vote
2answers
56 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 ...
0
votes
1answer
688 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....
1
vote
1answer
1k 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-...
1
vote
2answers
3k 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 ...
0
votes
1answer
230 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 ...
0
votes
1answer
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 ...
1
vote
1answer
185 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 ...
2
votes
1answer
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 ...
0
votes
1answer
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@...
1
vote
1answer
2k 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 ...
3
votes
2answers
2k 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 ...
0
votes
1answer
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://...
0
votes
1answer
310 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 ...
3
votes
1answer
2k 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 ...
0
votes
2answers
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 ...
1
vote
0answers
87 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 # --------------------------------------------...
1
vote
0answers
635 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 ...
1
vote
1answer
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 ...
2
votes
4answers
14k 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> ...