Jump to content

Welcome to Steams Community @ Play. Win. Repeat.
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

Bun venit pe Steams Community @ Play. Win. Repeat.

Bun venit pe Steams Community @ Play. Win. Repeat., pentru a avea full acces la forum te rugam sa te inregistrezi.
Ai mai multe motive pentru care sa te inregistrezi:
  • Acces la un forum structurat in parametri profesionali
  • Sansa de a da sau a primi like din partea membriilor
  • Sansa de a face parte din echipa steams
  • Alaturarea unei comunitati de viitor
Inregistreaza-te gratuit, acum!

In caz ca aveti probleme cu activarea/crearea/conectarea contului de pe forum lasati-ne un mesaj aici
Guest Message by DevFuse
 

Photo

.htaccess


  • Please log in to reply
No replies to this topic

#1
alex

alex

    Moderator

  • Founders
  • PipPip
  • 416 posts
  • Game Nick:alex
  • Y!M:alecsutzuu
  • Country:
  • City:BucureČ™ti
Pasul 1
Adaugam in httpd.conf urmatoarele linii cod daca nu exista :
[i]Options Indexes Includes FollowSymLinks MultiViews[/i]

[i]AllowOverride AuthConfig[/i]

[i]Order allow,deny[/i]

[i]Allow from all[/i]


# /etc/init.d/apache2 restart


Pasul 2
Cream user si parola pentru .htaccess
# mkdir -p /home/secure

# htpasswd -c /home/secure/passwords joe

# chown www-data:www-data /home/secure/passwords

# chmod 0660 /home/secure/passwords

# chown joe /home/secure/passwords

# chmod 0660 /home/secure/passwords


Pasul 3
Cream fisierul .htaccess in directorul home/secure/ si inseram urmatoarele linii cod.
.htaccess
AuthType Basic

AuthName "Zona Restrictionata"

AuthUserFile /home/secure/passwords

Require user joe


# /etc/init.d/apache2 restart

Pasul 4
Verificam in browser serviciul .htaccess.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users