Skip to main content

Questions tagged [apache-virtualhost]

The tag has no usage guidance.

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

Help needed with .htaccess

I have a website which needs to be changed from Nginx to Apache webserver. The index directory is nl.html but the HTML extension is removed from the address bar. If I visit the website example.com it ...
Noob's user avatar
  • 161
0 votes
0 answers
37 views

Installing program on CentOs cluster for a non-root user

I am a beginner and want to install Material Studio 2023 in CentOs (version 7) cluster. I would appreciate any comments on my attempts which comes as follows: My tries: I used ssh to connect to the ...
Martin's user avatar
  • 1
1 vote
0 answers
54 views

Getting Microsoft defender for cloud "Suspicious process executed by a network service" alerts for CentOS Linux

I am an Azure Consultant and I am getting Microsoft Defender for cloud "Suspicious process executed by a network service" alerts for CentOS Linux. Environment: Tomcat Apache running on ...
Toran Vaishnav's user avatar
0 votes
0 answers
24 views

Site Redirects to Subdomain if "www." is not typed in URL

I am running a WordPress site on Ubuntu 20.04.5 LTS (GNU/Linux 5.16.11-051611-generic x86_64), we'll call it myDomain.com. I have a .NET Core app deployed on the same server with the domain name like: ...
RyM's user avatar
  • 1
0 votes
1 answer
48 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-...
Christos Hayward's user avatar
0 votes
0 answers
1k 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 ...
TexasTim's user avatar
0 votes
0 answers
41 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 ...
Maverick's user avatar
0 votes
0 answers
95 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 ...
kmiklas's user avatar
  • 161
0 votes
0 answers
583 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....
paulin_0097's user avatar
2 votes
0 answers
133 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 ...
MrL's user avatar
  • 21
1 vote
1 answer
89 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 ...
magic.77's user avatar
  • 141
0 votes
1 answer
732 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]...
automation's user avatar
0 votes
1 answer
4k 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 #...
Black's user avatar
  • 2,098
0 votes
1 answer
5k 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:~$ ...
Алекс Шевцов's user avatar
0 votes
0 answers
464 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 ...
JConstantine's user avatar
0 votes
2 answers
646 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 ...
cookie's user avatar
  • 222
0 votes
1 answer
446 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 ...
LosmiNCL's user avatar
0 votes
0 answers
294 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 ...
Ren's user avatar
  • 273
0 votes
0 answers
612 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 "...
AMM's user avatar
  • 1
1 vote
1 answer
272 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 ...
dcorsello's user avatar
  • 131
0 votes
0 answers
269 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-...
John Pankowicz's user avatar
0 votes
0 answers
730 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 ...
John Pankowicz's user avatar
1 vote
1 answer
172 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 ...
sisko's user avatar
  • 341
-1 votes
1 answer
363 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, ...
mister mcdoogle's user avatar
2 votes
1 answer
625 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 ...
Mark's user avatar
  • 23
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" <...
user435421's user avatar
0 votes
1 answer
536 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 ...
user435421's user avatar
0 votes
0 answers
106 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)...
Ming Hieu's user avatar
0 votes
0 answers
111 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 ...
pitosalas's user avatar
  • 637
2 votes
2 answers
1k 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, ...
satyamfifa's user avatar
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 ...
Chris's user avatar
  • 4,221
1 vote
1 answer
829 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 ...
MattDahEpic's user avatar
0 votes
1 answer
168 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/...
Time-Bandit's user avatar
0 votes
2 answers
117 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/...
rumburak's user avatar
  • 205
0 votes
0 answers
25 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 ...
David Morin's user avatar
0 votes
1 answer
135 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 ...
Kelvin's user avatar
  • 1
0 votes
1 answer
984 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 ...
Søren Sjøstrøm's user avatar
0 votes
2 answers
136 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 ...
Peutre's user avatar
  • 77
6 votes
1 answer
6k 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 ...
Luis Machuca's user avatar
0 votes
1 answer
34 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 ...
Ikem Michael's user avatar
0 votes
1 answer
35 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 ...
df8oe's user avatar
  • 1
0 votes
1 answer
16 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 ...
Lee's user avatar
  • 189
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 /...
BitFreak's user avatar
  • 225
0 votes
1 answer
346 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 ...
Angel's user avatar
  • 330
1 vote
1 answer
148 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 ...
Stickley's user avatar
  • 237
-1 votes
1 answer
1k 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 ...
Dorcas Ogidan's user avatar
1 vote
0 answers
409 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 ...
markb's user avatar
  • 143
2 votes
2 answers
2k 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 ...
Priyanshu Asthana's user avatar
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 ...
JP Howlett's user avatar
1 vote
1 answer
153 views

Examples of virtual hosts in the Apache manuals

I'm preparing my self for a Linux exam, and I keep forgetting the format of an apache virtual host. At the exam, I am allowed to use the man pages and any documentation from the server, but I'm not ...
Isaiah's user avatar
  • 13