Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

Htaccess phpmyadmin htaccess

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
Sv3n
Posts: 4
Joined: Sat May 04, 2019 11:42 am

Os: Debian 8x
Web: apache + nginx
Htaccess phpmyadmin htaccess
  • Quote

Post by Sv3n » Sat May 04, 2019 11:47 am

Hi, can help me?

I will my phpmyadmin with a htaccess how can I do that?
Top

daz123
Posts: 2
Joined: Sat May 04, 2019 3:29 pm

Os: CentOS 6x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by daz123 » Sat May 04, 2019 3:44 pm

Hi,

I am guessing you want to protect phpmyadmin from public access.

In the file:

Code: Select all

/etc/httpd/conf.d/phpMyAdmin.conf
You can find and change:

Code: Select all

<Directory /usr/share/phpMyAdmin/>
   Order Deny,Allow
   Deny from All
   Allow from 12.34.56.78
</Directory>
replace

Code: Select all

12.34.56.78
with your own ip, you can add multiple lines.

Restart/reload apache after the change.
Top

Sv3n
Posts: 4
Joined: Sat May 04, 2019 11:42 am

Os: Debian 8x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by Sv3n » Sat May 04, 2019 4:25 pm

I am testing.
and how do I do that with cp and roundcube htaccess
Top

daz123
Posts: 2
Joined: Sat May 04, 2019 3:29 pm

Os: CentOS 6x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by daz123 » Sat May 04, 2019 5:38 pm

Code: Select all

/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security
Top

James
Posts: 1
Joined: Mon Jun 10, 2019 5:12 am
Contact:
Contact James
Facebook

Os: CentOS 5x
Web: nginx + php-fpm
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by James » Mon Jun 10, 2019 5:25 am

daz123 wrote: ↑
Sat May 04, 2019 5:38 pm

Code: Select all

/etc/httpd/conf.d/roundcubemail.conf
You do the same kind of thing with that file, btw if you are worried about those apps being hacked in the future, you could just install mod_security
Thank. I have the same problem, I hope it will help me mod_security for my site.
Top

jrdavid
Posts: 1
Joined: Mon Mar 16, 2020 3:59 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Htaccess phpmyadmin htaccess
  • Quote

Post by jrdavid » Mon Mar 16, 2020 4:59 pm

Create a backup copy before you edit any .htaccess file. I am giving you a reference article, might this help you https://mythemeshop.com/blog/edit-htaccess-file/
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Interface”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password