Questions tagged [apache-virtualhost]
196 questions
13
votes
2 answers
Let's Encrypt - Apache - OCSP stapling
I would like to enable OCSP stapling in my Apache server. I'm using:
Server: Apache/2.4.7 on Ubuntu
Certificate: Let's Encrypt
To the file:
/etc/apache2/sites-available/default-ssl.conf
I added:
SSLUseStapling on
Then, I…
NineCattoRules
- 181
- 1
- 7
10
votes
3 answers
Apache Virtual Host pointing to wrong DocumentRoot
I operate a VPS on Digital Ocean running Ubuntu 12.04.3, with virtual hosts. I was able to set things up following this tutorial here: https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts
However,…
Noel Forte
- 453
- 1
- 5
- 16
9
votes
2 answers
Allow access to Apache on both port 80 and 443 in Ubuntu 16.04
I've just installed UFW 0.35 on Ubuntu 16.04:
root@localhost:/etc# ufw --version
ufw 0.35
Copyright 2008-2015 Canonical Ltd.
and
root@localhost:/etc# ufw app list
Available applications:
OpenSSH
I would like to allow access to Apache on both…
en Peris
- 361
- 1
- 3
- 14
6
votes
4 answers
Creating a *.local ssl certificate
I am trying to set up a single SSL certificate that will make any *.local website work over https. I have all .local domains pointing back to my local machine. I use these when developing websites. A lot of new features (geo location, service…
Jonathan Hodgson
- 342
- 1
- 3
- 16
6
votes
6 answers
Apache won't restart after configuring Virtual Hosts
I am trying to make a web server, but after adding the virtual hosts config, apache won't restart. It had several errors but I've managed to fix most of them. Now I don't know what is happening because journalctl -xn doesn't give me any hint.
Here…
Victor Scarone
- 61
- 1
- 1
- 3
4
votes
1 answer
Apache + php-fpm: Proper permissions for per-pool, per-user projects?
What is the correct way to set up Apache virtualhosts and PHP-FPM pools with different users, one user per project, so that
each user/project is independent from each other in file access
projects using normal Apache / www-data, can not access the…
Luis Machuca
- 482
- 1
- 6
- 12
4
votes
1 answer
How to configure "https" in same domain for multiple ports?
I have a website(apache web server, ubuntu 14.04) setup http://example.com and configured with ports 1996 and 1980.
These links works with http
http://example.com/myproject
http://example.com:1996/
http://example.com:1980/
And then I installed SSL…
Nani
- 343
- 3
- 5
- 13
4
votes
2 answers
CentOS7 Apache: RSA certificate does NOT include an ID which matches the server name
I know this issue has been raised before, and I have searched through all the answers and tried all of the suggestions, none of which solved my problem, so I'll ask for assistance in a new thread.
I have installed and configured a new CentOS7…
npowroz
- 43
- 1
- 1
- 5
4
votes
1 answer
Should VirtualHost block be contained within the stanza?
I often see examples of VirtualHost configurations where blocks are placed outside of the stanza like this:
# /etc/httpd/conf.d/example1.conf
Require all…
Alxs
- 2,170
- 3
- 21
- 31
4
votes
2 answers
Use Apache's Name Based Virtual Host to Redirect to Internal IP
I'm toying with a new setup at home, and not sure if what I'm trying to do is possible or not.
I've got my domain's DNS pointed to my WAN IP and being answered by Apache on an Ubuntu 14.04 server on port 80 and everything there works fine. …
Mr. Monkey
- 687
- 5
- 10
3
votes
3 answers
Accesing localhost via IP from another device Ubuntu
I'm running localhost server on Ubuntu with xampp.
I want to access that server from another device within the same network.
To achieve that i'm using host IP adress from local network which is 192.168.150.250.
When i'm entering 192.168.150.250 from…
Bartosz Was
- 41
- 1
- 3
3
votes
2 answers
How to do mass virtual hosting with lets encrypt?
I have 2500 public domains (like www.example.com, example.com, www.example.net, and example.net) running on a single IP-address using Apache VirtualHost.
I want to setup letsencrypt for all these domains. What is the recommended way of doing that?…
Ole Tange
- 33,591
- 31
- 102
- 198
3
votes
0 answers
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 fit my problem.
I have a server that uses…
TonyMorello
- 351
- 1
- 7
3
votes
0 answers
Proper pointing of subdomain
apache2ctl -S before a2ensite subdomain.example.com.conf
[Sat Feb 18 13:15:55.649294 2017] [alias:warn] [pid 4524] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier…
benua
- 31
- 1
3
votes
1 answer
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.…
udemethegrtman
- 33
- 1
- 5