Add new user apache
Posted by: soxnaples (---.ip240.fastwebnet.it)
Date: September 18, 2014 10:09AM

Hi guys!
I'm doing a bit of confusion with the Directives.
In my httpd.conf I have the following situation:
1) <Directory />
                AllowOverride None ....
         None Options
         Order allow, deny
       
    Allow from all
           </ Directory>

2) <Directory "c: / wamp / www /">

       .....
     </ direcotry>

Now I would like to restrict access to certain users.
How can I do that?

Options: ReplyQuote
Re: Add new user apache
Posted by: Otomatic (Moderator)
Date: September 18, 2014 10:55AM

Hi,

Use VirtualHost : [forum.wampserver.com]

> 1) <Directory />
AllowOverride None ....
None Options
Order allow, deny

Allow from all
</ Directory>

With this, there are billions to be able to access not only to your server, but also parts of your computer.
We must let bans for everyone and only allow certain by VirtualHost.
Then you can add htaccess files with restricted access, for example with password.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Add new user apache
Posted by: soxnaples (---.49-79-r.retail.telecomitalia.it)
Date: September 18, 2014 11:06AM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> Use VirtualHost :
> [forum.wampserver.com]
>
> > 1) <Directory />
> AllowOverride None ....
> None Options
> Order allow, deny
>
> Allow from all
> </ Directory>
>
> With this, there are billions to be able to access
> not only to your server, but also parts of your
> computer.
> We must let bans for everyone and only allow
> certain by VirtualHost.
> Then you can add htaccess files with restricted
> access, for example with password.



Ok i swap allow from all in the www directory,so in this case everyone can access my server right?

i create password file by htpasswd (bin in apache) for user x e pass y and i want to know how can use it.

Options: ReplyQuote
Re: Add new user apache
Posted by: Otomatic (Moderator)
Date: September 18, 2014 11:21AM

Hi,

In httpd.conf file (For Apache 2.2.x)
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
and
#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from localhost ::1 127.0.0.1
</Directory>
Never modify these access restrictions.
Use VirtualHost like explain in the link mentionned in my previous message.

For .htaccess and password, see related documention of Apache: [httpd.apache.org]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.