Hi everybody,
http://www.some.site/phpmyadmin/ is running/working/logging, and I don't want it
https://www.some.site/phpmyadmin/ is running/working/logging, and It's OK
How do I deny PhpMyAdmin http access ?
I called a directory somesite match my domain name in /usr/local/www/somesite/.
I installed phpmyadmin in /usr/local/www I copied to /usr/local/www/somesite/phpMyAdmin
I'm saying that this is not a symbolic link!
I want to install in VirtualHost multiple domain names.
I configured my server with https.
I configured a file in the /usr/local/etc/apache22/Includes/phpmyadmin.conf directory.
its content is as follows:
VirtualHost commad :
Can you answer me, please ?
Thanks a lot for your help.
Have a nice day.
Best regards.
Christophe
http://www.some.site/phpmyadmin/ is running/working/logging, and I don't want it
https://www.some.site/phpmyadmin/ is running/working/logging, and It's OK
How do I deny PhpMyAdmin http access ?
I called a directory somesite match my domain name in /usr/local/www/somesite/.
I installed phpmyadmin in /usr/local/www I copied to /usr/local/www/somesite/phpMyAdmin
I'm saying that this is not a symbolic link!
I want to install in VirtualHost multiple domain names.
I configured my server with https.
I configured a file in the /usr/local/etc/apache22/Includes/phpmyadmin.conf directory.
its content is as follows:
# ee /usr/local/etc/apache22/Includes/phpmyadmin.conf
Code:
Alias /phpmyadmin "/usr/local/www/somesite/phpMyAdmin/"
CustomLog /var/log/http/phpmyadmin-access_log combined
ErrorLog /var/log/http/phpmyadmin-error_log
<Directory "/usr/local/www/somesite/phpMyAdmin/">
Options none
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /phpmyadmin
RewriteRule (.*) [url]https://www.some.site/phpmyadmin/[/url] [R]
</IfModule>
VirtualHost commad :
# httpd -S
Code:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 www.some.site (/usr/local/etc/apache22/extra/httpd-ssl.conf:74)
*:80 is a NameVirtualHost
default server www.some.site (/usr/local/etc/apache22/Includes/some.site.conf:2)
port 80 namevhost www.some.site (/usr/local/etc/apache22/Includes/some.site.conf:2)
Syntax OK
Can you answer me, please ?
Thanks a lot for your help.
Have a nice day.
Best regards.
Christophe