Add Web User - Where is Apache configuration file?

Hi,

I want to create another web UI login name for my junior administrator for managing (add / disable / remove/) OpenVPN remote-workers accounts.

I use the instrurtion “Adding Web Users” - [Smoothwall - Adding Web Users]

  1. In order the instruction I create a new user account for accessing the web interface, from a command prompt on my IPfire:

htpasswd /var/ipfire/auth/users pavel

And the new user was added in file /var/ipfire/auth/users :

[root@router-4 /]# cat /var/ipfire/auth/users
admin:$2y$07$T8VMjLh5n6eCYnXNM1EcdeXMTq9NBg*******70W1AKAhsv6Jm0Hu
pavel:$apr1$qf9ztneT$w********za0I.yjJmVcv/

  1. In order to instruction for grant new user access I try to find file .htaccess but can’t find in any folders.

I found IPfire use Apache for Web GUI

[root@router-4 /]# /usr/sbin/httpd -v
Server version: Apache/2.4.41 (Unix)
Server built: Feb 4 2020 07:49:18

I try to find were are Apache conf file located, but I can’t

[root@router-4 /]# find / -name apache
/etc/rc.d/init.d/apache
/usr/lib/apache

Can any one help me?

Thanks in advance,
WBR, Vladimir.

Configuration is in /etc/httpd/conf.
The users are in /var/ipfire/auth/users

2 Likes

Hi Bernhard,
thank you for the answer.
You show me the right direction))

In the directory:

/etc/httpd/conf/vhosts.d/

I found file:

ipfire-interface-ssl.conf

And modify three sections like this:

    <RequireAll>
        Require user admin pavel
        Require ssl
    </RequireAll>

    <RequireAll>
        Require user admin pavel
        Require ssl
    </RequireAll>

    <RequireAll>
        Require user admin pavel
        Require ssl
    </RequireAll>

After this modification I restart httd service:

/etc/init.d/apache restart

So I can login to web-GUI ipFire with new account.
Now I have additional web login account for my system administrator.

Thank a lot,
WBR Vladimir

@vladimir-zazulin
Be aware that the configuration will revert to only admin once you update IPFire.

2 Likes