btodd012
September 4th, 2014, 05:48 AM
Hi help -
After upgrading to apache2 2.47 I tried to get my site up and succeeded. However, I can now access things that I only want to access from localhost.
In all my changes, I'm not sure what I did wrong.
I have the default apache2.conf
Here is the Directory stuff in apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
In conf-enabled httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
# Order deny,allow
# Deny from all
# New follows
Require all denied
Allow from 127.0.0.1
</Directory>
<Directory /var/www/>
DirectoryIndex index.php index.html
AddType text/html .php
Options Includes Indexes IncludesNoExec FollowSymLinks MultiViews
XBitHack on
# Order allow,deny
# allow from all
Require all granted
</Directory>
I have the default phpmyadmin.conf
I can access all directories in /var/www/html
Problems
I can access phpmyadmin from the internet not from localhost only...
phpmyadmin.conf has the following
......
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>
and FINALLY
If there is no index.html or index.php then a directory listing is provided that you can follow.
I have found lots of information - too much - and am having difficulty getting it right...
After upgrading to apache2 2.47 I tried to get my site up and succeeded. However, I can now access things that I only want to access from localhost.
In all my changes, I'm not sure what I did wrong.
I have the default apache2.conf
Here is the Directory stuff in apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf
In conf-enabled httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
# Order deny,allow
# Deny from all
# New follows
Require all denied
Allow from 127.0.0.1
</Directory>
<Directory /var/www/>
DirectoryIndex index.php index.html
AddType text/html .php
Options Includes Indexes IncludesNoExec FollowSymLinks MultiViews
XBitHack on
# Order allow,deny
# allow from all
Require all granted
</Directory>
I have the default phpmyadmin.conf
I can access all directories in /var/www/html
Problems
I can access phpmyadmin from the internet not from localhost only...
phpmyadmin.conf has the following
......
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>
and FINALLY
If there is no index.html or index.php then a directory listing is provided that you can follow.
I have found lots of information - too much - and am having difficulty getting it right...