Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4819

Troubleshooting • Apache not accessible to internet. Losing my mind.

$
0
0
Here is the run down.

I was behind a CGNAT that is no longer an issue.
Firewall is temp disabled.
Port 80 is forwarded on the router. This works from the internet it just hits the pi and is refused.

Full LAMP with Mariadb is installed on the pi5

I will give the conf files below but I need to preference this by saying the site works fine in network and I installed XAMPP on my mac and opened port 80 to it to see if it was a ISP thing and it worked perfectly fine from in and outside the network. So there is something wrong with my configurations.

Whiskey tango foxtrot am I missing.

Here are the files.

000-default.conf
<VirtualHost *:80>

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Require all granted
</Directory>

</VirtualHost>


apache2.conf

DefaultRuntimeDir ${APACHE_RUN_DIR}

PidFile ${APACHE_PID_FILE}

Timeout 300

KeepAlive On

MaxKeepAliveRequests 1000

KeepAliveTimeout 5

User ${APACHE_RUN_USER}

Group ${APACHE_RUN_GROUP}

HostnameLookups Off

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel warn

IncludeOptional mods-enabled/*.load

IncludeOptional mods-enabled/*.conf

Include ports.conf

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
</Directory>

<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>

<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

AccessFileName .htaccess

<FilesMatch "^\.ht">
Require all denied
</FilesMatch>

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

IncludeOptional conf-enabled/*.conf


IncludeOptional sites-enabled/*.conf
ServerName 127.0.0.1


host.conf
multi on

hostname
chatterbox

host
127.0.0.1localhost chatterbox
::1 localhost ip6-localhost ip6-loopback chatterbox
ff02::1ip6-allnodes
ff02::2ip6-allrouters

ports.conf
Listen 0.0.0.0:80
Listen [::]:80

<IfModule ssl_module>
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

Statistics: Posted by Chatterbox — Fri Jun 14, 2024 2:48 am



Viewing all articles
Browse latest Browse all 4819

Trending Articles