DevHeads.net

Postings by MOKRANI Rachid

restrict Location URL with special string

Hi,

I have URL like below (with ? and =)

<a href="http://myserver/?s=about" title="http://myserver/?s=about">http://myserver/?s=about</a>

What’s the correct syntax to allow only some IP.

<Location "/\?s\=about">
Require ip 127.0.0.1
</Location>

<Location "/?s=about">
Require ip 127.0.0.1
</Location>

<LocationMatch "about">
Require ip 127.0.0.1
</LocationMatch>

Nothing work.

Thanks in advance for any suggestion.
Regards.

KVM SSL with wget

Hi,
I installed KVM on a CentOS 7.4 host.

SessionCryptoPassphrase

Hi,

About the following documentation I understand that I can set a "SessionCryptoPassphrase" for protect my session with a cookie.

cookie and RewriteCond

Hi,

I use apache 2.4 on centos.

I want to protect the access to a page (/my_folder/secure) with a cookie (in my exemple the cookie name is : my_cookie_name)

I would like that some machine with IP 192.1.1.10 and 192.1.1.11 can access the server without the cookie.

form-login-handler - AuthFormLoginSuccessLocation

Hi,

Please help...

Can anyone explain to me where I make a mistake?

I try to protect a portion of my web site with the following guidelines.

<a href="http://httpd.apache.org/docs/2.4/en/mod/mod_auth_form.html" title="http://httpd.apache.org/docs/2.4/en/mod/mod_auth_form.html">http://httpd.apache.org/docs/2.4/en/mod/mod_auth_form.html</a>

with this config I can not enter the url : <a href="http://admin.mydomain.com/admin/index.html" title="http://admin.mydomain.com/admin/index.html">http://admin.mydomain.com/admin/index.html</a>
I have the following error
Method Not Allowed
The requested method GET is not allowed for the URL /secure/index.php.

My config is:

/index.html (Public root / auth form)
/admin/index.html (The contents of the folder i wish to protect)

<a href="http://admin.mydomain.com/script/index.php" title="http://admin.mydomain.com/script/index.php">http://admin.mydomain.com/script/index.php</a>
<form method="POST" act

AuthFormLoginSuccessLocation

Hi,

I try to protect access to a part of my web site with One Time Password.

With apache 2.4 I try to use the following directive.

<a href="http://httpd.apache.org/docs/2.4/en/mod/mod_auth_form.html" title="http://httpd.apache.org/docs/2.4/en/mod/mod_auth_form.html">http://httpd.apache.org/docs/2.4/en/mod/mod_auth_form.html</a>

in my httpd.conf I add

<Location /dologin>
SetHandler form-login-handler
AuthFormLoginRequiredLocation <a href="http://myhost/nologin.htm" title="http://myhost/nologin.htm">http://myhost/nologin.htm</a>
AuthFormLoginSuccessLocation <a href="http://myhost/job" title="http://myhost/job">http://myhost/job</a>
AuthName "OTP WebCloud Protected Area"
AuthFormProvider OTP
OTPAuthUsersFile /otp/otp-users.txt
OTPAuthLogoutOnIPChange On
OTPAuthMaxLinger 600
OTPAuthFallThrough On
</Loca

apache - upload files bigger than 2Go

Hi,

I need to upload files larger than 4.4Gb (iso DVD) on CentOS (5.5 x64)
http server (httpd-2.2.3-43.el5.centos)

On the apache server set in my /etc/php.ini

upload_max_filesize = 4900M

post_max_size = 5000M

In my httpd.conf I set :

LimitRequestBody 0

I'm using firefox and/or chrome client for upload a file with 4.2gb size
on the server.

But it doesn't work.

Everything work fine and I can upload my file if it's not greater than
2gb.

Cloud freeware suggestion

Hi,

Is someone has some experience with a nice freeware tool like "DropBox"
that I can use on CentOS apache server. I see owncloud, it's a nice tool
that I can use with my AD server.

Some experience with other freeware tool ?

Regards.

No USB 3.0 and audio sound with CentOS 5.6

Hi,

I installed CentOS 5.6 on a Dell Precision Laptop M4600.

This laptop has 2 USB 3 connectors. Nothing work (mouse or usb key...)
when I connected something on this 2 ports.

Replace NIS by Active Directory

Hi,

I'm looking a wiki or share experience for replace NIS authentication by
an existing Active directory Server (W2003). The problem is on the
management of id and gid.

How to move 1000 actual NIS users to AD ?
How to keep the same id and gid for this 1000 users ?
What's happen with nfs linux server and acess with gid and/id ?
Use the same user/password for linux and Windows clients
authentification?

We test a solution who work very well. It's Centrify comercial software
<a href="http://www.centrify.com/directcontrol/overview.asp" title="http://www.centrify.com/directcontrol/overview.asp">http://www.centrify.com/directcontrol/overview.asp</a> . But we are looking
a freeware solution. (kerberos ?