Questions tagged [apache-virtualhost]
The apache-virtualhost tag has no usage guidance.
196
questions
0
votes
1
answer
44
views
How am I not calling /index.cgi?
root@technoluddites:/etc/apache2/sites-enabled# uname -a
Linux technoluddites.org 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
root@technoluddites:/etc/apache2/sites-...
0
votes
0
answers
73
views
Disable TLSv1.0 and TLSv1.1 using httpd CentOS7
I'm trying to disable TLS 1.0/1.1 for PCI Compliance, but having problems.
Running CentOS 7 / Apache 2.4.6
The Server is setup with multiple hosts.
All the documentation I've found is similar but ...
0
votes
0
answers
19
views
nextcloud app loses access to directory after another directory is mounted into it
There is a cloud based on the nextcloud application, it works on the server where apache is installed, there is also a server where the mariadb database is spinning and a server where glusterfs is ...
0
votes
0
answers
37
views
What is the correct way of redirecting / rewrtiting traffic from HTTP to HTTPS in Ubuntu / Apache2?
I'm learning about website hosting, and more and more YouTube sources recommend redirecting traffic from HTTP to HTTPS these days. I've found two ways this can be done, and I'd like to ask which one ...
0
votes
0
answers
28
views
Can I move the sitename-le-ssl.conf contents into sitename.conf and delete the sitename-le-ssl.conf in my Virtual Host setup on Ubuntu / Apache?
I have this free SSL certificate from Let'sEncrypt and it works just fine.
But there's quite many files inside my /etc/apache2/sites-available/ directory and I'd like to delete / merge some of them, ...
0
votes
0
answers
39
views
Reverse Proxy on apache SSL not working and pointing to wrong direction
I"am running a mailcow server on Debian 11 with reverse proxy on Apache.
I want to have 3 things on this server Mailcow (is running) . Just a normal Webpage. and in the future a nextcloud server ...
0
votes
0
answers
52
views
DNS record configuration to work with server blocks and virtual hosts
What is the correct DNS configuration for multiple subdomain names, so that they will work with nginx server blocks and/or Apache virtual hosts?
Example:
Server IP Address: 192.0.2.0
Main/primary ...
0
votes
0
answers
325
views
Site does not exist for a2ensite
During the koha installation process I told ubuntu to
sudo a2ensite library
and got the message
ERROR: Site library does not exist!
I looked it up and found here that I might have to rename the file....
2
votes
0
answers
98
views
PHP-FPM + Apache2 security
My question is almost identical to Luis Machuca's from 2 years ago (Apache + php-fpm: Proper permissions for per-pool, per-user projects?), but with some additional conditions.
I have also configured ...
0
votes
0
answers
44
views
Creating a Wordpress website accessible from outside on Centos 7
I have a task to do and I am not sure how to do it. I had to send a public SSH key to someone, they sent me a Virtual Machine (Centos 7) address, so I connect to this machine with my private SSH key.
...
0
votes
0
answers
111
views
How to use Apache2 serverName directive as a variable or echo an environment var for virtualhost serverName
Hello linux community ,
I'm stucked, so i need your help. I made a symfony application under Raspbian buster which works with apache2, i need to make many disk images of this app to install it on many ...
1
vote
1
answer
67
views
client denied by server configuration after reinstalling KDE Desktop and SDDM
Systeminfos:
Ubuntu 22.04
KDE-Plasma-Version: 5.24.6
KDE-Frameworks-Version: 5.92.0
Qt-Version: 5.15.3
Kernel-Version: 5.15.0-10048-tuxedo (64-bit)
Apache 2.4.52
During a system cleanup, I seem to ...
0
votes
1
answer
516
views
How to automatically create an apache virtual host with Bash?
About five years ago I have created the following Bash script to automate creation of apache virtual hosts.
#!/bin/bash
read -p "Have you created db credentials already?" yn
case $yn in
[Yy]...
0
votes
1
answer
2k
views
Is the private key included in the CA bundle?
Below you can see my apache2 virtual host SSL config from one of our domains, which works fine:
...
# Example SSL configuration
SSLEngine on
#SSLProtocol all -SSLv2
#...
0
votes
1
answer
4k
views
Certbot gives an error for apache2
I tried to configure SSL using this guide:
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-22-04
But I get this error:
serv_ivan@964889-cd87180:~$ ...
0
votes
0
answers
336
views
How can I connect to my Apache 2 web site that sits on the Ubuntu Server through IP?
Here's my virtual host configurations:
<VirtualHost *:80>
ServerName abwebserver
ServerAdmin <my e-mail>
DocumentRoot /var/www/mediawiki
AllowEncodedSlashes NoDecode
...
0
votes
2
answers
540
views
Two virtual hosts in one config file
Is it possible for me to have two virtual hosts (ports: 80 & 443) in one config file? i.e.
/etc/apache2/sites-available/example.test.conf
<VirtualHost *:443>
ServerName example.test
...
0
votes
1
answer
398
views
Apache Web Server port 433 and Tomcat port 8080, redirect not working
I have a Java web application on CentOS on Google Cloud. I can access my web app with http://mydomain:8080. I wish https://mydomain (without 8080 in URL) to lead to application, but instead, I just ...
0
votes
0
answers
254
views
apache2: where is the default virtual host config?
I am install apache2 on Ubuntu 18.04 using following command:
apt install apache2
Then I am edit the file /etc/apache2/ports.conf to listen port 8090:
# If you just change the port or add more ports ...
0
votes
0
answers
561
views
Problems with flask app with apache server
Just created a simple flask app that returns the string "hello world", it works and does what expected, If I use my http://localhost/ with the apache server enabled I will get the "...
1
vote
1
answer
184
views
.htaccess being ignored by Apache
It seems that the .htaccess file for one of my virtual hosts is being ignored on my production server. The file is identical to working .htaccess files for other vhosts on the same server. Also, the ...
0
votes
0
answers
240
views
Why does Apache's mod-rewrite module process some GET requests and not process others?
I am trying to get mod_rewrite working. I'm experimenting with a very simple rule:
RewriteEngine On
RewriteRule ^/one /var/www/html/oldindex.html
Here is the complete config file: /etc/apache2/sites-...
0
votes
0
answers
614
views
In Apache config all my attempts to redirect all requests to index.html fail
I have an Angular SPA that should only request index.html. All other URL requests to this server are handled internally by the SPA. I want to redirect all 404 errs to index.html.
[UPDATE: This post ...
1
vote
1
answer
165
views
Apache virtualhost configuration issue
I'm developing a symfony application and in trying to remove index.php from the url, I used the following virtualhost configuration:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
...
-1
votes
1
answer
339
views
HTTPD: What's Missing?
I am unable to get webpages past the default Apache Welcome screen. I am trying to get www.mybestfriendsarecats.com to publish.
httpd -S
provided error information in /etc/httpd/conf.d/mod_security, ...
2
votes
1
answer
522
views
Debian 10 apache2 virtual hosts for subdomain
I have Debian 10 and apache2 and in virtual hosts configuration for subdomain. Configuration for main domain:
<VirtualHost *:80>
ServerName system.com
ServerAlias system.com
...
0
votes
1
answer
3k
views
Apache HTTPD does not list all files in directory
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 16 2020 16:18:20
When I go to browser and type IP/result I do not see all the files in directory.
Alias /result "/var/geojson"
<...
0
votes
1
answer
451
views
Apache HTTPD allow access for multiple users from their respective IPs
Directory on the server needs to be accessed by multiple users and each user can have access only if they are accessing from specific IP with their credentials. I only find syntax how to describe this ...
0
votes
0
answers
93
views
How to reverse proxy call in apache
I have a reverse proxy setup as follows in Apache:
Server A with address www.proxyserver.com/graphql is the reverse proxy server. (magento - php)
It maps to: Server B with address example.com (reactjs)...
0
votes
0
answers
106
views
Ubuntu/Apache/Flask - sub-subdomain?
On a fresh install of Ubuntu 20.04, I’ve set up the new server with apache -> MOD WSGI.
The configuration of apache recommends that I create subdomains. How will that interact with the fact that ...
2
votes
2
answers
859
views
How does Apache webserver is able to detect CNAME
I was quite curious how does Apache web server can detect a subdomain even when all the subdomains point to same IP address, since my understanding is that an IP address that cannot have a subdomain, ...
0
votes
2
answers
46
views
http to https redirection preventing redirections to other domains
I have following vhost redirecting 80 to 443:
<VirtualHost *:80>
ServerName site.mydomain.com
ServerAlias www.site.mydomain.com
DocumentRoot /srv/htdocs
Redirect ...
1
vote
1
answer
526
views
How do I serve *nothing* on a server's bare IP with Apache2 virtual hosts?
I am hosting several project sites on a machine running Apache. Of course I am using virtual hosts and they work as expected. However, currently accessing the bare IP of the machine yields the first ...
0
votes
1
answer
141
views
Can Access LAMP over LAN, CANNOT Access Sites
I can view a directory of my LAMP server running on Ubuntu 20.04 over my LAN using my mobile phone's web browser, when I type http://192.168.X.XXX. However, I can not access any of the sites/...
0
votes
2
answers
87
views
Apache vhost local request
I got 2 sites configured via apache vhost like:
<VirtualHost *:443>
DocumentRoot /var/www/site1
ServerName www.site1.com
...
<VirtualHost *:443>
DocumentRoot /var/www/...
0
votes
0
answers
24
views
Home Server Stopped Routing to IP
I have set up an apache server on Debian. I have www.mydomain.com pointing to my home IP for my subdomains. unraid.mydomain.com. This has been working up until about a week ago. Now when I am ...
0
votes
1
answer
132
views
Possible running Apache and Nginx independently on same server
Possible running Apache and Nginx VirtualHosts independently on same server.
I know they must listen on different ports BUT is it possible to say let Apache independently handle 3 websites while the ...
0
votes
1
answer
861
views
Access to webserver behind nginx reverse-proxy from outside fails with SSL handshaking error
I have a setup where there are a number of Apache web servers behind a common Nginx reverse proxy server. But I can not access the web servers from the Internet. The access works fine on my local ...
0
votes
2
answers
123
views
Apache redirection http to https
i try to activate redirection for a website, http to https.
Content of an .htacces founded
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
...
5
votes
1
answer
5k
views
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 ...
0
votes
1
answer
32
views
why does proxy reverse included to a single virtualhost configuration via post virtualhost include affect other virtual hosts on same vps
I have created a virtualhost configuration file in the specified directory /etc/apache2/conf.d/userdata/std/2_4/username/sub.domain.com/file.conf (in this example for sub.domain.com.)
I have also ...
0
votes
1
answer
32
views
transfer .htaccess rewrite to apache vhost configuration
I am using a script that is called every time a special keyword combination is in query string - on all of my domains that are located on my server. I am using .htaccess files on every domain that ...
0
votes
1
answer
15
views
Virtual includes with XAMPP
I am running Ubuntu 18.04 with XAMPP 7.3.7.1 for Linux. I have one acct. that uses HTML and so I use <!--#include virtual="/includes/css.html" --> for my includes. The problem is when ...
1
vote
1
answer
1k
views
certbot does not recognize the added VirtualHost
I'm trying to use certbot to get a certificate for my http server running nextcloud (archarm on a raspi). When I run: $ sudo certbot --apache, I get:
$ sudo certbot --apache
Saving debug log to /...
0
votes
1
answer
318
views
Can't access subdomains on apache
My objective is to create 2 sites site1.example.com and site2.example.com in two VirtualHosts and use /etc/hosts for resolving.The problem is that I can access the main domain example.com but none of ...
1
vote
1
answer
144
views
Can I group load-balanced apache http logs on a rsyslog log server by VirtualHost?
I have an array of load balanced app servers (app1-app4) for multiple websites logging to a single log server (log1). I would like the logs on the log server to be grouped by virtualhost so I can see ...
-1
votes
1
answer
966
views
Problem with running multiple Websites on Ubuntu Server 18.04 LTS with Apache
I am new to Linux networking. I set up an Ubuntu Server and I use my laptop as a client via SSH. I am trying to host 2 websites on the server but when I test the web pages on my Laptop, they will ...
1
vote
0
answers
378
views
Apache fails to load when SSL activated through Pacemaker
I have setup a cluster on Pacemaker holding: apache, mariadb, 2x GFS2, and a VIP
Everything was working fine when running on http but as soon as I added the (self-signed) SSL certificate and the ...
2
votes
2
answers
1k
views
Different virtual hosts (Apache) for different subdirectories?
I want to host a webpage for 150 users. Each user will have a unique webpage by the url url/username/index.html. Here username is unique for all users rest all remains common.
So do I need to make ...
0
votes
0
answers
1k
views
Apache stopped working after update - requests just timeout now - problem with firewalld
UPDATE:
I tried rolling back the yum update and it did not resolve the problem. I also tried running the server with only a single virtual host and no SSL and then trying to access site via http. I ...