Questions tagged [apache-virtualhost]

The tag has no usage guidance.

1
vote
2answers
56 views

Apache 2.4 with self-signed certificates always redirect to the default virtual host

I've been trying to make work virtual hosts with self-signed certificates with Apache 2.4. I've tried many setup combinations but no matter what, every virtual host I try in Firefox goes straight to ...
0
votes
1answer
29 views

How to host webserver with domain name? [closed]

I bought a domain with Namecheap and want to host the server by myself but with the domain name. How do I do this? Whenever I search on Google I only get useless results telling me things I don't ...
0
votes
0answers
70 views

Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service”

I am trying to install Devstack but it stopping in the middle Currently trying to install openstack, but the long process of individual installation, so am using devstack, however i already install ...
0
votes
0answers
11 views

httpd virtual host to proxy requests to FTP on another host

I have a host for which I have its public IP address. I'd like to use this public IP to redirect the FTP access to an FTP running on another host. Example: Consider the host for which I have the ...
0
votes
1answer
20 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 ...
0
votes
1answer
47 views

Apache server giving 403 Forbidden for IPV6 addresses?

We have an Apache server running, where it serves well any IPV4 address, but all access from IPV6 is blocked with "403 Forbidden". Any possible most likely causes to that? EDIT Thanks for the ...
0
votes
2answers
38 views

403 frobidden when trying access apache / directory

I am trying to run my first PHP code on my desktop Linux. I installed httpd on my pc and changed these things: Changed document root to /home/MyUserName/httpd/www Changed default port to 8080 I ...
0
votes
0answers
14 views

Appache SSL timeout and reqtimeout module

It seems Apache SSL http2 does not honor KeepAliveTimeout Server version: Apache/2.4.29 (Ubuntu) built: 2018-10-10T18:59:25 Searching Stackoverflow, I could find the issue is with ...
0
votes
0answers
10 views

Setting up reverse proxies for websites cloned to local machine

I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts: <VirtualHost *:8080> ServerName ...
0
votes
0answers
34 views

Configure virtual host for custom directory

I have a web application installed in '/var' in a folder called 'myapp' in a CentOs 6 vps, and i have a sub-domain that points to the server IP, and i need that sub-domain to point to that '/var/myapp'...
0
votes
1answer
353 views

Redirect on the same port from http to https with nginx reverse proxy

I have a website setup http://mydomain.com/myroject on ubuntu 14.04(apache webserver) I setup htsql service on the same host to run on port 5000 working links: http://mydomain.com/myproject http://...
2
votes
1answer
91 views

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/ ...
0
votes
1answer
14 views

Adding .htaccess to Wordpress results in 500 Internal Server Error

I am moving a Wordpress site to a new dedicated host. I have managed to move the assets and import the wordpress database. I update the wp_options to the tempory domain name (until I'm ready to make ...
0
votes
0answers
13 views

Problem accessing virtual host website from host machine

I'm running an Ubuntu virtual machine on Hyper V on Windows 10. My virtual machine is using a Hyper V external network adapter so that it can access the outside network. I'm trying to set up a ...
0
votes
1answer
16 views

Virtualhosts not resolve for Apache

I have a website in /var/www/statgenerique5. I have added the following to the /etc/apache2/sites-available/statgen5.conf <VirtualHost *:80> ServerName statgen5.local ServerAdmin webmaster@...
1
vote
1answer
52 views

redirecting traffic via .htaccess or VirtualHost .conf fails with https on centos 7 multisite server

I have a Centos 7 server configured for multisite web hosting. One of the things I'm trying to do with this server is redirect traffic to old subdomains to subdirectories on our primary website. The ...
0
votes
0answers
105 views

How to use PHP CGI instead of PHP-FPM with APache2

My Drupal 7 site works fine on a Debian6 with PHP 5.3.7 as native package. The configuration file of Apache2 is oriented to use CGI. I exported the same site on a Debian9 with Php7.x as native ...
0
votes
0answers
65 views

Getting permission error with laradock on ubuntu 18.04 - works fine on 16.04

Info Docker version: Docker version 17.12.1-ce System info disto/version: Ubuntu 18.04 LTS Issue: Apache2 container builds and runs fine but getting error ERR_CONNECTION_RESET in the browser when ...
2
votes
1answer
324 views

Apache redirect certain url or subdomain to internal ip

I have a gitlab server next to my web server running on my home network. On my web server I run Apache2 with some domains. One of them is example.com. Now my aim is that the user receives the gitlab ...
1
vote
1answer
38 views

How do I configure a Vagrant virtual machine with a host name?

I'm trying to use Vagrant to set up an Ubuntu/Apache virtual machine using Virtual Box on a Windows 10 host, and then configure my host machine so that opening the URL magento.dev in my browser pulls ...
0
votes
1answer
51 views

/etc/hosts file is cluttered with useless content, how should I properly use /etc/hosts ( apache2 )

I recently tried to add a URL in my /etc/hosts file, and because of many different attempts in the past, I realized I most probably have some extra lines in there which are not necessary. I have read ...
0
votes
1answer
378 views

How to configure the Certbot not to include options-ssl-apache.conf into my VirtualHosts?

# cat /etc/letsencrypt/options-ssl-apache.conf # Baseline setting to Include for SSL sites using Let's Encrypt certificates SSLEngine on # Intermediate configuration, tweak to your needs ...
1
vote
0answers
19 views

Apache2 000-Default VHost won't be choosen by a Request [closed]

I have a Linux server with Debian GNU/Linux 9 (stretch) and Apache/2.4.25 (Debian) installed. I wanna host multiple websites on my server. For example one main wesbites and 2-3 smaller websites for ...
0
votes
1answer
18 views

DNS point to internal IP

I have a DNS entry for an IP which can be accessed externally it is http://xyz.abc.com. I have set it up and it is working Now I also have a 123.abc.loc which is attached to an IP internally on 192....
0
votes
1answer
238 views

Problem with Wpad file in Mozilla Firefox

I have this wpad.pac function FindProxyForURL(url, host) { if (isPlainHostName(host) || shExpMatch(host, "*.local") || isInNet(dnsResolve(host), "192.168.0.0", "255.255.255.0") || isInNet(...
1
vote
0answers
882 views

Subdomain of localhost is not working. Apache 2.4.25 (Debian) Server at subdomain.localhost Port 80

Apache 2.4.25 (Debian) Server at Port 80: Subdomain of localhost is not working localhost is working. localhost/site1 is also working. site1.localhost is not working Changed DocumentRoot from /var/...
2
votes
3answers
494 views

Accesing localhost via IP from another device Ubuntu [closed]

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....
1
vote
1answer
28 views

Debian9 - Virtual Host [closed]

I must be missing something here... I've created a conf file here: /etc/apache2/sites-available/mysite.lee.conf Which contains: <VirtualHost *:80> ServerName mysite.lee ServerAdmin ...
0
votes
1answer
1k views

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 ...
0
votes
1answer
56 views

Apache config files order

I have an application (OTRS) and it is using Apache 2.4 as web server. Now I can see the main configuration file httpd.conf but as well a file that was deployed with the OTRS rpm /etc/httpd/conf.d/...
0
votes
0answers
886 views

Apache SSL configuration Connection refused connect:errno=111

I am trying to configure SSL on an old opensuse server: openSUSE 11.4 (x86_64) VERSION = 11.4 CODENAME = Celadon I enabled the apache SSL module: apache2ctl -M Loaded Modules: core_module (static) ...
0
votes
0answers
30 views

Use proxy in linux server. Different result between command line and browser execution

In my web server i am trying to use proxy in all outgoing http(s) request in linux ( centos7 ). example: curl request. After set proxy by export http_proxy and https_proxy, when i run a file (php) ...
3
votes
1answer
3k views

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 ...
0
votes
1answer
29 views

I have successfully install virtual host in CentOS server, then what can I do for subdomain?

I follow instructions from digitalocean And checks that works. Now what can I do to activate a subdomain. My actual domain is csedu.cf. I made /etc/httpd/sites-available/csedu.cf.conf containing ...
0
votes
1answer
131 views

Unable to restart apache

I was following digitaloceans.com guide to setup a subdomain. But now I'm having trouble restarting apache. I have the following error: Job for httpd.service failed because the control process ...
0
votes
2answers
965 views

apache error log expecting DH and EC parameters in certificate

I have been trying for 7 hours to start my Apache web server after I obtained new SSL certificates from LetsEncrypt. I have obtained an ECDSA certificate and the server still failing to start with the ...
-2
votes
1answer
73 views

can not access local HTTPS site from another PC on Ubuntu 16.4 [closed]

I was developing a PWA(Progressive Web Application) on my Ubuntu 16.4 Offline and one requirement of the framework is an HTTPS connection to be able to run. I configured my Apache server and enabled ...
0
votes
1answer
44 views

Map local IP 127.0.1.2 in different directory in Apache Server

In my localhost (Apache Server), I have two VirtualHost in port 80 pointing to different directory. Here is my two conf file: <VirtualHost *:80> ServerName localhost DocumentRoot /home/...
-1
votes
1answer
41 views

Redirect all subdomain request to my main domain ip [closed]

Is it possible to redirect all subdomain request to my main domain ip or deny all to hide my own server ip? I'm using cloudflare and it's working only on the main domain. Example: FROM ping example....
0
votes
2answers
543 views

Map /phpmyadmin to a different folder in apache with Centos 7

I used the following instructions to install phpMyAdmin into Centos 7 webserver: wget https://files.phpmyadmin.net/phpMyAdmin/4.6.5.2/phpMyAdmin-4.6.5.2-all-languages.tar.gz tar xvzf phpMyAdmin-4.6.5....
0
votes
1answer
109 views

How can I enable SSL on my Apache for more than one port? (Got an eror)

I need to enable SSL for more ports than 443. I've tried it this way: First I've added the port to my ports.conf Listen 8081 After this I've edited my vHost in my Apache: <VirtualHost *:8081>...
2
votes
2answers
2k views

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 ...
2
votes
0answers
960 views

Timeout error after https configuration on CentOS 7

I have an app that has been running for 2 years now via http. Now we want to move to https for better security. Our OS is CentOS Linux 7. We have a virtual host config in /etc/httpd/sites-available ...
0
votes
2answers
738 views

Error when starting httpd service "Could not reliably determine the server's fully qualified domain name using localhost.localdomain

I have been following this install for LibreNMS https://www.linuxhelp.com/how-to-install-librenms-in-centos/. Everything has been fine until I finally started the httpd service. It spits out this ...
0
votes
3answers
255 views

Protect against incorrect virtualhost requests in centos/apache

We run a CentOS Linux release 7.4 LAMP stack with Apache 2.4. On a monitoring dashboard, I keep track of various performance metrics, and one of those is "bad host requests" where the virtualhost ...
0
votes
1answer
427 views

Apache Logs - X-Forwarded-for together with Virtualhost not logging

I'm using Apache/2.4.27 Within the VirtualHost I'm forwarding the remote client IP header from the Loadbalancer with: RemoteIPHeader X-Forwarded-For Which is needed by the application served by ...
1
vote
1answer
44 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
1answer
273 views

Acme-Challenge not requestable by all sub-domains?

I have Apache 2.4 and the following site-config for acme challenges: <IfModule mod_alias.c> Alias /.well-known/acme-challenge /var/www/letsencrypt/challenges/ <Directory "/var/www/...
1
vote
0answers
919 views

How to resolve the socket timeout error on my webserver

Background: I have four webserver with LAMP under my AWS ELB. Each webserver has two virtual host on these servers. Issue: I am continuously getting site down alert from pingdom with below error ...
0
votes
1answer
360 views

Apache directory listing theme

How can I set webdav directory listing theme for all shares? Something like this. But rather in global configuration not separately for every share with .htaccess file in every shared folder.