domingo, 28 de agosto de 2011

Autenticación en directorios por usuario y contraseña en Apache 2 – Justicia – Donate – Justicia

El método de autenticación que utilizaremos sera elHTTP Digest. Enesta entrada esta explicado la forma de activarlo.
El servidor apache contiene un modulo que tenemos que activarlo antes de utilizar.

En unaentrada anterior habíamos configurado el ssl de un sitio.
Para comenzar vamos a editar al sitio que queremos restringir su acceso solo a algunos usuarios.
Escribimos por consola:
sudo nano /etc/apache2/sites-enabled/ProyectosBeta


OJO:
ProyectosBeta → es mi dominio web de ejemplo en mi server.

Ejemplo del archivo:
VirtualHost *:443
ServerAdmin josego85@gmail.com
ServerName ProyectosBeta
DocumentRoot /var/www/

Directory /var/www/pruebaSSL
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
/Directory

ErrorLog /var/log/apache2/ProyectosBeta-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/ProyectosBeta-access.log combined

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
/VirtualHos


Dentro de Directory que esta en negrita se agrega estos campos:
AuthName "ProyectosBeta"
AuthType Digest
AuthUserFile /etc/apache2/passwords.conf
Require valid-user

Y luego lo guardamos.
Explicamos los campos:
  • AuthName: indica el nombre del dominio de autenticación. Lo que va a salir en el mensaje de ingreso de usuario y password

  • Authtype: indica que el método a usar es Digest

  • AuthUserFile: indica donde se encuentra el archivo para la autenticación del usuario y password /etc/apache2/passwords.conf

  • Require: usuarios que tienen acceso a los recursos específicos. Ejemplo: valid-user → cualquier usuario incluido en el archivo de contraseñas (passwords.conf )

Luego guardamos el archivo.
Ahora escribimos en la consola:
sudo htdigest -c /etc/apache2/passwords.conf ProyectosBeta visitante


ProyectosBeta tiene que ser el mismo que AuthName.
visitante es el nombre del usuario para que pueda acceder al recurso.

Luego te va a pedir la contraseña del usuario que recién hemos indicado (visitante).

Después de esos pasos ya podremos reiniciar el apache.
Escribimos en la consola:
sudo service apache2 restart


Ahora ya podremos verificar que solo vamos a poder usar el recurso si te logeaste bien con tu usuario y tu respectiva contraseña. Entramos al navegador y listo.XD
Fuente:Scribd

mesothelioma attorney california paychex naperville orlando truck accident attorney accident attorneys orange county truck accident attorney california business voip phone service providers cheap business internet and phone service national structured settlement trade association car accident attorneys in los angeles how to sell annuities los angeles motorcycle accident lawyer how to get a masters in business administration baltimore mesothelioma attorneys accident lawyers in los angeles colorado car accident attorney personal injury attorny business class internet accident attorney san bernardino best personal injury lawyer dallas big data analytics software skype push to talk business phone direct structured settlement buyer auto accident lawyer san francisco bluehost vs ipage semi truck accident lawyers mesothelioma compensation hughes net business cloud to cloud backup structured settlements annuities business email web hosting maryland auto insurance quote structured settlement quote phone and internet service for business accident lawyer houston tx factoring accounts receivable tax treatment arizona car accident lawyer injury lawyers west palm beach bus accident attorneys tucson dui attorney mesothelioma claim internet phone system for small business mesothelioma settlements cloud tecnology structured settlement cash out mesothelioma survival rates structured settlement annuity companies structured settlement purchasers tucson car accident attorney personal injury lawyer sarasota fl truck accident lawyer los angeles workplace accident attorney mesothelioma personal injury lawyers structured settlement lump sum car accident lawyer tampa costa mesa dui lawyer mesothelioma attorneys california car accident attorney colorado springs dallas mesothelioma attorneys motorcycle accident lawyer san diego structured settlement sale customer service saas nss imss broward county dui lawyer houston mesothelioma lawyers personal injury attorney springfield mo microsoft vdi licensing auto accident attorney Torrance philly accident lawyer internet business plan cash for my structured settlement what is a structured settlement car accident attorney orange county injury attorney baton rouge colorado auto accident attorney new mexico mesothelioma lawyer auto collision lawyers pensacola personal injury lawyer houston motorcycle accident lawyer mesothelioma suit windows phone for business houston tx auto insurance selling my structured settlement auto accident lawyer in los angeles mesotheleoma coverdell education savings account calculator small business administration sba mesothelioma ct car accident lawyers miami wisconsin mesothelioma attorney car accident lawyers west palm beach mesothelioma litigation mesotheliama mesothelioma lawyer chicago personal injury lawyers houston mesothelioma settlements amounts mesothelioma lawyer asbestos cancer lawsuit family plumber water damage repair tampa huntington beach dui lawyer fast cash for house business telephone providers in my area los angeles auto accident attorneys mesothelioma trial attorney mesotheioma drug rehab in dallas att business sales phone number boca raton personal injury attorney maritime lawyer houston best business voip phone system mesothelioma lawyer virginia irvine car accident lawyer average mesothelioma settlement selling annuity payments for cash lawyers accidents personal injury attorneys sacramento personal injury attorney memphis attorney philadelphia houston maritime lawyers structured settlement company seattle mesothelioma lawyer online masters degree in corporate communications business telephone service provider personal injury lawyer long beach ca residential treatment centers florida start web design business dallas mesothelioma lawyer mesothelioma lawyer texas brooks auto insurance mesothelioma attorney illinois selling annuity new york mesothelioma law firm injury lawyer houston tx emergency response plan ppt motorcycle accident lawyer los angeles new business phone service mesothelioma care sell structured settlement car accident attorney new york city structered settlement defense attorney phoenix structured settlement investments best buy business phone systems meso attorney telco solutions mesothelioma lawyer dallas denver car accident attorney denver car accident lawyers mesothelioma diagnosis mobile business phone accident lawyer orange county caraccidentlawyer best internet service for business free electronic medical records software download personal injury lawyer boca raton fl earthlink business internet structured settlemen cash out structured settlement purchasing annuity hipaa hosting providers car accident lawyer phoenix solar lease programs allstate structured settlement annuity houston mesothelioma attorney mesothelioma lawsuit structured settlement sell washington mesothelioma attorney online school business management structured settlements companies saskatchewan auto insurance mesothelioma lawsuits personal injury lawyer miami sell annuity payments free online car quotes business telephone and internet packages georgia truck accident lawyer cash annuity best dui lawyer in phoenix verizon sip structured settlements charleston accident attorney mesothelioma claims best business voip provider offshore accident lawyer lawsuit mesothelioma pharmacist jobs in chicago alcohol rehab center in florida business internet phones fort lauderdale personal injury lawyer personal injury lawyers tampa business internet and phone service providers truck accident attorney los angeles dui attorneys orlando asbestos exposure lawyers best mesothelioma lawyers dui lawyer tempe a structured settlement structured settlement attorneys mesothelioma cases supportpeachtreecom sell annuities injury attorney dallas philadelphia mesothelioma lawyer email archiving solution ashely madis structured settlement annuity rates business high speed internet service mesothelioma attorney assistance injury attorney milwaukee mesothelioma lawyers san diego asbestos mesothelioma lawsuit buying structured settlements work injury lawyer los angeles purchase structured settlements tennessee mesothelioma lawyer healthcare financial management certification meso lawyer arizona injury lawyer accident attorney orange county business credit car quotes car mesothelioma law firms business voice mail service master in healthcare administration online business compliance package cloud computing companies to invest in best accident attorneys personal injury accident lawyer structured settlement definition nist cloud security firm law mesothelioma car accident lawyers los angeles mesothelioma attorneys water damage wall repair jg wentworth peachtree call centers software motorcycle accident lawyer california sell structured settlement calculator mesotheolima mesothelioma attorney florida state of california car insurance truck accident attorney texas structured settlements for sale selling a structured settlement denver sewer line repair asbestos mesothelioma lawyers pittsburgh auto insurance chicago work injury lawyer bus accident attorney los angeles best business phone and broadband deals california motorcycle accident lawyer mesothelioma lung texting from the internet to cell phone ft lauderdale personal injury lawyer mesothelioma help cloud coputing diagnosed with mesothelioma motorcycle accident attorney chicago personal injury lawyer in chicago structured settlement need cash now building online stores las vegas car accident lawyer injury lawyer tampa scottsdale accident attorney mesothelioma settlement amounts motorcycle accident attorney sacramento water restoration san diego business finance courses cash for structured settlement enterprise cloud solution outbound call center software probability of dying in a car accident san diego auto accident attorneys how to change auto insurance companies car accident lawyer michigan criminal justice bachelor degree online best car accident lawyers drain cleaning in denver can i sell my annuity personal injury attorney ocala fl dallas car wreck attorney masters degree in human resource management personal injury attorney newport beach katy auto insurance california mesothelioma attorney business phone internet service structured settlement companies anaheim dui lawyer buy structured settlements how to open a bank account overseas alcohol rehabilitation florida selling structured settlement illinois mesothelioma lawyer health care reform impact on employers integrated ehr plueral mesothelioma mesothelioma attorney auto accident lawyers california business phone and internet providers sell my structured settlement alcohol rehab centers florida auto insurance cost by state personal injury lawyers michigan mesothelioma lawyer companies that buy structured settlements car accident lawyer san bernardino cash advance structured settlement florida car insurance company virtual data room pricing alabama mesothelioma lawyer atlanta truck accident attorney accident and injury lawyer car accident lawyer in san diego attorney lawyer mesothelioma best mesothelioma lawyer colorado mesothelioma lawyers cell cycle regulation ppt i have a structured settlement business telephone service providers by zip code arizona auto accident lawyer mesothelioma law suit delaware mesothelioma lawyer west palm beach criminal lawyer internet phone service for small business sell your structured settlement payments utah mesothelioma lawyer voice phone system business class phone wireless security systems for business alcohol addiction therapy most profitable internet business business telephone systems reviews las vegas criminal defense attorneys arizona auto accident attorney california insurance car a a accident attorneys cash out annuity hosted predictive dialers sell a structured settlement car crash attorneys internet fax telus dui lawyer scottsdale structured settlement agreement mesothelioma law suits cloud identity and access management accident attorney san antonio auto insurance anaheim ca annuity payment hybrid cloud solution accident attorney in los angeles michigan motorcycle accident lawyer yahoo web based mail personal injury attorney torrance peruvianconnectioncouk internet serious business personal injury firm business internet houston auto accident lawyer in maryland detox in florida boulder personal injury lawyers mesothelioma lawyer california structured settlement blog mesothelioma staging cheaper insurance companies longdistance telephone providers asterisk call center software los angeles workers compensation lawyers highlander the final dimension secure cloud access phoenix car accident lawyer chandler air conditioning mesothelioma drug auto accident lawyer miami best online graduate programs for education mesothelioma attorney directory drug programs in schools dui attorney tempe network coverage comparison best structured settlement companies benign cystic mesothelioma business administration masters car insuran e criminal defense attorney austin dwi attorney in austin auto insurance yuba city ca addiction treatment program structured settlement broker cloudservice car quotes tumblr buying an annuity calculator personal injury attorney west palm beach fl buyer of structured settlement annuity mesothelioma lawyer san diego buyers of structured settlements motorcycle lawyer los angeles mesothelioma lawyer massachusetts mesothelioma law firm california motorcycle accident lawyer san francisco structure settlements

mesothelioma attorneys california card services direct login hughes net business seattle mesothelioma lawyer mesothelioma survival rates state of california car insurance scholarship opportunities for middle school students structured settlements annuities delaware mesothelioma lawyer business voip service providers drug rehab fl injury attorney milwaukee dui attorney miami structured settlement sell structured settlement attorneys mesothelioma cases alcohol rehabilitation florida car insuarnce quotes cash out annuity electronic health record program auto insurance yuba city ca best dui attorney phoenix dui lawyer tempe az houston tx auto insurance structured settlement purchasers baltimore mesothelioma attorneys car injury mesothelioma lawyer houston structured settlements for sale information about car insurance phone system for small businesses auto accident lawyer in maryland structured settlement annuity companies structured settlement buyout best mesothelioma lawyer auto accident law firms business phone service comparison structured settlement broker philadelphia mesothelioma lawyer integrated management log tucson car accident attorney buyers of structured settlements hosted predictive dialers attorney malpractice cases mesothelioma suit start web design business structured settlement buyer corporate conference call services multicystic peritoneal mesothelioma quotes car plumbing company denver mesothelioma lawyer dallas dallas hvac service truck accident attorney texas windows phone for business cloud computing security companies wisconsin mesothelioma attorney internet phone service for small business personal injury lawyers houston structered settlement nist cloud security mesothelioma attorney massachusetts accident and injury lawyer houston motorcycle accident lawyer sell my annuity mesothelioma law firms boulder personal injury lawyers colorado injury lawyers alcohol rehab center in florida business telephone and internet packages mesothelioma claim arizona injury lawyer personal injury attorney west palm beach fl best mesothelioma lawyers colorado springs accident attorney motorcycle accident lawyer los angeles call center agent software mesothelioma lawyer san diego selling my structured settlement san diego auto accident attorneys california motorcycle accident lawyer annuity payment caraccidentlawyer selling an annuity mesothelioma lawyers san diego auto insurance policy sample national structured settlement trade association structured settlement need cash now ft lauderdale personal injury attorney mesothelioma lawyer massachusetts small business administration sba los angeles motorcycle accident lawyer best online graduate programs for education mesothelioma personal injury lawyers workers compensation lawyer los angeles payout annuity cash out structured settlement business administration masters mesothelioma lawsuits drug rehab facilities in florida sell annuity personal injury lawyer sarasota fl call centers software email archiving solution mesothelioma claims austin criminal lawyer internet phone system for small business structured settlement blog cyber security small business best dui attorney orange county offshore injury lawyer mesothelioma lawsuit mesothelioma lawyer virginia can i sell my annuity supportpeachtreecom personal injury attorney clearwater trucking accident attorney online website store builder injury lawyers west palm beach mesotheliama broward county dui lawyer webmail teamhealth lawyers accidents cloud computin katy auto insurance cloud identity and access management verizon sip truck accident attorney los angeles accident attorney fort lauderdale business voice mail service diagnosed with mesothelioma bluehost vs ipage mesothelioma attorney illinois structured settlement company structured settlemen personal injury attorney orange county ca selling annuity water damage wall repair mesothelioma trial attorney telco solutions auto insurance in seattle mesothelioma lawyers injury lawyer houston tx mesothelioma rates top rated personal injury lawyers michigan injury lawyer mesothelioma care mesothelioma lawyer texas sell structured settlement calculator arizona personal injury lawyer jg wentworth rip off citrix api a a accident attorneys structured settlement investments top business apps for iphone city college in miami orange county water damage restoration auto accident lawyer in los angeles sell an annuity cash for annuity asbestos lawyers los angeles mesothelioma attorneys cloud to cloud backup santa ana auto accident lawyer paass office phone plans companies car insurance structured settlement rates personal injury attorney ocala fl businessinternet internet fax telus austin texas personal injury attorney car insurance for asbestos cancer life expectancy advanced american telephones auto accident lawyer west palm beach houston mesothelioma attorney cash for annuity payments structured settlement companies epithelioid mesothelioma magento dedicated hosting my family app new york mesothelioma law firm personal injury lawyers tampa dui lawyer phoenix mesothelioma lawyer chicago st louis mesothelioma attorney lawsuit mesothelioma holistic addiction treatment center florida secure cloud access new voip phone service best android business card scanner auto accident attorney Torrance structured settlement quote accident attorney in los angeles rn bsn credentials cash for structured settlement asbestos exposure lawyers colorado mesothelioma lawyers criminal defense attorney phoenix car accident lawyer st petersburg fl emergency response plan ppt motorcycle lawyer los angeles broadband phone service hybrid cloud solution semi truck accident lawyers houston mesothelioma lawyers irvine car accident lawyer php web application development mesothelioma lawyer asbestos cancer lawsuit car wreck lawyer dallas auto accident lawyers in houston tx accident lawyer orange county tennessee mesothelioma lawyer treatments for mesothelioma asbestos mesothelioma lawsuit baton rouge personal injury lawyer buying structured settlements mesothelioma attorney assistance florida automobile insurance company earthlink business internet accidents attorneys meso lawyer sacramento car accident lawyer auto insurance conroe tx online phd programs in public health auto accident lawyer san francisco orlando truck accident attorney accident attorney orange county mesothelioma litigation bus accident attorney los angeles mesothelioma settlements amounts personal injury attorney austin business phone service in my area annuity cash out new mexico mesothelioma lawyer salt lake city personal injury lawyers auto accident attorney denver utah mesothelioma lawyer cloud firewall service purchase structured settlements brooklyn accident lawyer accident attorneys orange county car cheap insurance uk very car accident attorney tampa online schools for social worker degree personal injury lawyers sarasota personal accident attorney best car accident lawyers asterisk call center software academy of cosmetology janesville wi personal injury accident lawyer workers compensation attorney atlanta ga motorcycle accident attorney sacramento meso attorney structured settlement buyers firm law mesothelioma car accident lawyers los angeles Los Angeles water damage restoration open paas san antonio accident lawyer chicago condo insurance ehr inc mesotheloma phoenix park hotel washington dc bed bugs mesotheolima mesothelioma attorney florida structural settlement nashville car accident lawyer princeton application tracking system marketing online degrees selling a structured settlement most profitable internet business mesothelioma fund business email web hosting best accident attorneys mesothelioma ct auto insurance corpus christi tx accident attorney san bernardino auto insurance redlands ca car accident attorney baton rouge car insuran e cash for annuity payment washington mesothelioma attorney java application performance management california car accident attorney mesothelioma help dui attorney tempe az mesothelioma lawyer california business internet san francisco car accident law firms mesothelioma compensation skype push to talk motorcycle accident attorney chicago auto insurance loveland co dui austin mesothelioma settlement amounts cheaper insurance companies car accident lawyer louisville south florida personal injury attorney fast cash for house business pbx system car accident attorneys in los angeles car accident lawyer michigan maritime lawyer houston business telephone service provider workplace accident attorney auto accident attorney tampa personal injury attorney torrance drug rehabilitation centers in florida peruvianconnection co uk raid network coverage comparison or car insurance personal injury lawyer miami california mesothelioma attorney personal injury lawyers fort lauderdale miami workers compensation lawyer data recovery raid accident lawyers in los angeles attorney lawyer mesothelioma offshore accident lawyer buy structured settlements selling structured settlement illinois mesothelioma lawyer mesothelioma attorney denver injury attorney personal injury attorney newport beach auto insurance cost by state average mesothelioma settlement settlement for cash chicago work injury lawyer florida car insurance company major cloud service providers structured settlement cash out mesothelioma settlements solar lease programs structured settlement definition structured settlment keller williams insurance mesotheioma online masters degree programs massachusetts online school business management tampa truck accident lawyer cell cycle regulation ppt best business phone and broadband deals business phone service orlando injury attorney baton rouge integrated ehr

Share:

Popular Posts

Recent Posts

Blog Archive

Con la tecnología de Blogger.