You are on page 1of 11

Confguracin de httpd Server Web: Directorio conf

Subdirectorio conf
Archivo httpd.conf
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"
#Listen 12.!."#.$%&%'
Listen %'
# Load(od)le foo*+od)le +od)les/+od*foo.so
#
Load(od)le a)th*,asic*+od)le +od)les/+od*a)th*,asic.so
Load(od)le a)th*di-est*+od)le +od)les/+od*a)th*di-est.so
Load(od)le a)thn*.le*+od)le +od)les/+od*a)thn*.le.so
Load(od)le a)thn*alias*+od)le +od)les/+od*a)thn*alias.so
Load(od)le a)thn*anon*+od)le +od)les/+od*a)thn*anon.so
Load(od)le a)thn*d,+*+od)le +od)les/+od*a)thn*d,+.so
Load(od)le c-i*+od)le +od)les/+od*c-i.so
Load(od)le version*+od)le +od)les/+od*version.so
#
# Load con.- .les fro+ the con.- directory "/etc/httpd/conf.d".
#
/ncl)de conf.d/0.conf
/ncl)yendo host virt)ales 12-ina 1
Confguracin de httpd Server Web: Directorio conf
#
3ser apache
4ro)p apache
### Section 2& 5(ain5 server con.-)ration
#
# The directives in this section set )p the val)es )sed ,y the 5+ain5
# server6 7hich responds to any re8)ests that aren5t handled ,y a
# 9:irt)al;ost< de.nition. These val)es also provide defa)lts for
# any 9:irt)al;ost< containers yo) +ay de.ne later in the .le.
#
# All of these directives +ay appear inside 9:irt)al;ost< containers6
# in 7hich case these defa)lt settin-s 7ill ,e overridden for the
# virt)al host ,ein- de.ned.
#
# ServerAd+in& =o)r address6 7here pro,le+s 7ith the server sho)ld ,e
# e>+ailed. This address appears on so+e server>-enerated pa-es6 s)ch
# as error doc)+ents. e.-. ad+in?yo)r>do+ain.co+
#
ServerAd+in infor+atica?ihnca.ed).ni
#
# Doc)+entRoot& The directory o)t of 7hich yo) 7ill serve yo)r
# doc)+ents. @y defa)lt6 all re8)ests are taAen fro+ this directory6 ,)t
# sy+,olic linAs and aliases +ay ,e )sed to point to other locations.
#
Doc)+entRoot "/var/777/ht+l"
#
# This sho)ld ,e chan-ed to 7hatever yo) set Doc)+entRoot to.
/ncl)yendo host virt)ales 12-ina 2
Confguracin de httpd Server Web: Directorio conf
#
9Directory "/var/777/ht+l"<
#
# Allo7Override controls 7hat directives +ay ,e placed in .htaccess .les.
# /t can ,e "All"6 "None"6 or any co+,ination of the Aey7ords&
# Options Bile/nfo A)thCon.- Li+it
#
Allo7Override All
#
# Controls 7ho can -et st)D fro+ this server.
#
Order allo76deny
Allo7 fro+ all
9/Directory<
# 3serDir& The na+e of the directory that is appended onto a )ser5s ho+e
# directory if a E)ser re8)est is received.
#
# See also& http&//httpd.apache.or-/docs/+isc/BAF.ht+l#for,idden
# Directory/ndeG& sets the .le that Apache 7ill serve if a directory is re8)ested.
#
# The indeG.ht+l.var .le Ha type>+apI is )sed to deliver content>
# ne-otiated doc)+ents. The ()lti:ie7s Option can ,e )sed for the
# sa+e p)rpose6 ,)t it is +)ch slo7er.
#
DirectoryIndex index.html index.php index.html.var
# AccessBileNa+e& The na+e of the .le to looA for in each directory
/ncl)yendo host virt)ales 12-ina
Confguracin de httpd Server Web: Directorio conf
# for additional con.-)ration directives. See also the Allo7Override directive.
#
AccessBileNa+e .htaccess
#
# The follo7in- lines prevent .htaccess and .htpass7d .les fro+ ,ein-
# vie7ed ,y Je, clients.
#
9Biles E "KL.ht"<
Order allo76deny
Deny fro+ all
Satisfy All
9/Biles<
#
MrrorLo- lo-s/error*lo-
#
# Lo-Level& Control the n)+,er of +essa-es lo--ed to the error*lo-.
# 1ossi,le val)es incl)de& de,)-6 info6 notice6 7arn6 error6 crit6 alert6 e+er-.
#
Lo-Level 7arn
#
# Set to "M(ail" to also incl)de a +ailto& linA to the ServerAd+in.
# Set to one of& On N OD N M(ail
#
ServerSi-nat)re On
#
# Je incl)de the /icons/ alias for Bancy/ndeGed directory listin-s. /f yo)
# do not )se Bancy/ndeGin-6 yo) +ay co++ent this o)t.
/ncl)yendo host virt)ales 12-ina !
Confguracin de httpd Server Web: Directorio conf
#
Alias /icons/ "/var/777/icons/"
9Directory "/var/777/icons"<
Options /ndeGes ()lti:ie7s Bollo7Sy+LinAs
Allo7Override None
Order allo76deny
Allo7 fro+ all
9/Directory<
# Je,DA: +od)le con.-)ration section.
#
9/f(od)le +od*dav*fs.c<
# Location of the Je,DA: locA data,ase.
DA:LocAD@ /var/li,/dav/locAd,
9//f(od)le<
#
# The sa+e r)les a,o)t trailin- "/" apply to ScriptAlias directives as to Alias.
#
ScriptAlias /c-i>,in/ "/var/777/c-i>,in/"
# "/var/777/c-i>,in" sho)ld ,e chan-ed to 7hatever yo)r ScriptAliased
# C4/ directory eGists6 if yo) have that con.-)red.
#
9Directory "/var/777/c-i>,in"<
Allo7Override None
Options None
Order allo76deny
Allo7 fro+ all
/ncl)yendo host virt)ales 12-ina "
Confguracin de httpd Server Web: Directorio conf
9/Directory<
# /ndeGOptions& Controls the appearance of server>-enerated directory listin-s.
#
/ndeGOptions Bancy/ndeGin- :ersionSort Na+eJidthO0 ;T(LTa,le CharsetO3TB>%
#
# Add/con0 directives tell the server 7hich icon to sho7 for diDerent
# .les or .lena+e eGtensions. These are only displayed for
# Bancy/ndeGed directories.
Add/con@yMncodin- HC(16/icons/co+pressed.-ifI G>co+press G>-Pip
Add/con@yType HTQT6/icons/teGt.-ifI teGt/0
Add/con@yType H/(46/icons/i+a-e2.-ifI i+a-e/0
Add/con@yType HSND6/icons/so)nd2.-ifI a)dio/0
Add/con@yType H:/D6/icons/+ovie.-ifI video/0
Add/con /icons/,inary.-if .,in .eGe
Add/con /icons/,inheG.-if .h8G
Add/con /icons/tar.-if .tar
Add/con /icons/7orld2.-if .7rl .7rl.-P .vr+l .vr+ .iv
Add/con /icons/co+pressed.-if .R .P .t-P .-P .Pip
Add/con /icons/a.-if .ps .ai .eps
Add/con /icons/layo)t.-if .ht+l .sht+l .ht+ .pdf
Add/con /icons/teGt.-if .tGt
Add/con /icons/p.-if .pl .py
Add/con /icons/dvi.-if .dvi
Add/con /icons/))encoded.-if .))
Add/con /icons/script.-if .conf .sh .shar .csh .Ash .tcl
Add/con /icons/hand.ri-ht.-if RMAD(M
/ncl)yendo host virt)ales 12-ina #
Confguracin de httpd Server Web: Directorio conf
#
# ;eaderNa+e is the na+e of a .le 7hich sho)ld ,e prepended to
# directory indeGes.
Read+eNa+e RMAD(M.ht+l
;eaderNa+e ;MADMR.ht+l
#
# /ndeG/-nore is a set of .lena+es 7hich directory indeGin- sho)ld i-nore
# and not incl)de in the listin-. Shell>style 7ildcardin- is per+itted.
/ndeG/-nore .SS0 0E 0# ;MADMR0 RMAD(M0 RCS C:S 06v 06t
AddLan-)a-e de .de
AddLan-)a-e el .el
AddLan-)a-e en .en
AddLan-)a-e eo .eo
AddLan-)a-e es .es
AddLan-)a-e et .et
AddLan-)a-e fr .fr
AddLan-)a-e he .he
AddLan-)a-e hr .hr
AddLan-)a-e Ta .Ta
#
# Lan-)a-e1riority allo7s yo) to -ive precedence to so+e lan-)a-es
# in case of a tie d)rin- content ne-otiation.
#
# U)st list the lan-)a-es in decreasin- order of preference. Je have
# +ore or less alpha,etiPed the+ here. =o) pro,a,ly 7ant to chan-e this.
#
/ncl)yendo host virt)ales 12-ina $
Confguracin de httpd Server Web: Directorio conf
Lan-)a-e1riority en ca cs da de el eo es et fr he hr it Ta Ao ltP nl nn no pl pt pt>@R r) sv
Ph>CN Ph>TJ
# Specify a defa)lt charset for all content servedV this ena,les
# interpretation of all content as 3TB>% ,y defa)lt. To )se the
# defa)lt ,ro7ser choice H/SO>%%"W>1I6 or to allo7 the (MTA ta-s
# in ;T(L content to override this choice6 co++ent o)t this
# directive&
AddDefa)ltCharset 3TB>%
# 3se na+e>,ased virt)al hostin-.
#
#ame!irtual"o#t $:%&
# NOTM& Na+e:irt)al;ost cannot ,e )sed 7itho)t a port speci.er
# He.-. &%'I if +od*ssl is ,ein- )sed6 d)e to the nat)re of the
# SSL protocol.
# !irtual"o#t example:
# Al+ost any Apache directive +ay -o into a :irt)al;ost container.
# The .rst :irt)al;ost section is )sed for re8)ests 7itho)t a Ano7n
# server na+e.
#
#'!irtual"o#t $:%&(
# ServerAd+in 7e,+aster?d)++y>host.eGa+ple.co+
# Doc)+entRoot /777/docs/d)++y>host.eGa+ple.co+
# ServerNa+e d)++y>host.eGa+ple.co+
# MrrorLo- lo-s/d)++y>host.eGa+ple.co+>error*lo-
# C)sto+Lo- lo-s/d)++y>host.eGa+ple.co+>access*lo- co++on
#9/:irt)al;ost<
#confguracione# del lo# ho#t virtuale# de ihnca
/ncl)yendo host virt)ales 12-ina %
Confguracin de httpd Server Web: Directorio conf
Na+e:irt)al;ost 2'W.W%.12.1'2&%'
#9:irt)al;ost 2'W.W%.12.1'2&%'<
# ServerNa+e 777.ihnca.ed).ni
# Doc)+entRoot /var/777/ht+l/al+idon/de+o/p),lic*ht+l
# Alias /c+s /var/777/ht+l/al+idon/p),
# Alias /al+idon /var/777/ht+l/al+idon/php
# Alias /.les /var/777/ht+l/al+idon/de+o/.les
# Alias /ad+in /var/777/ht+l/al+idon/de+o/sec)re
# Alias /doc /var/777/ht+l/al+idon/doc
# 9Directory /var/777/ht+l/al+idon<
# Options XSy+LinAs/fO7ner(atch
# Allo7Override Bile/nfo A)thCon.- Li+it Options
# 9/Directory<
# 9Directory /var/777/ht+l/al+idon/de+o/.les<
# Allo7Override None
# php*Ya- en-ine oD
# 9/Directory<
# Re7riteMn-ine on
# Re7riteR)le K/c+s/pic/H.0I/H.0I/H.0IZ /var/777/ht+l/al+idon/p),/pic.php [L\
#9/:irt)al;ost<
9:irt)al;ost 2'W.W%.12.1'1&%'<
ServerAd+in historia.ihnca.ed).ni
Doc)+entRoot /var/777/ht+l
ServerNa+e historia.ihnca.ed).ni
MrrorLo- /var/lo-/httpd/error*lo-
C)sto+Lo- lo-s/d)++y>host.eGa+ple.co+>access*lo- co++on
/ncl)yendo host virt)ales 12-ina W
Confguracin de httpd Server Web: Directorio conf
'!irtual"o#t )&*.*%.+,).*%:%& (
ServerAd+in altorre#-ihnca.edu.ni
Doc)+entRoot /var/777/ht+l/clase
ServerNa+e uca.ihnca.edu.ni
MrrorLo- /var/lo-/httpd/error*lo-
C)sto+Lo- lo-s/d)++y>host.eGa+ple.co+>access*lo- co++on
9/:irt)al;ost<
9Directory "/var/777/ht+l/phpsysinfo"<
# 1ossi,le val)es for the Options directive are "None"6 "All"6
# or any co+,ination of&
# /ndeGes /ncl)des Bollo7Sy+LinAs Sy+LinAsifO7ner(atch MGecC4/ ()lti:ie7s
# Note that "()lti:ie7s" +)st ,e na+ed 0eGplicitly0 >>> "Options All" doesn5t -ive it to
yo).
# The Options directive is ,oth co+plicated and i+portant. 1lease see
# http&//httpd.apache.or-/docs/2.2/+od/core.ht+l#options
# for +ore infor+ation.
#
Options /ndeGes Bollo7Sy+LinAs
# Allo7Override controls 7hat directives +ay ,e placed in .htaccess .les.
# /t can ,e "All"6 "None"6 or any co+,ination of the Aey7ords&
# Options Bile/nfo A)thCon.- Li+it
#
Allo7Override All
# Controls 7ho can -et st)D fro+ this server.
#
/ncl)yendo host virt)ales 12-ina 1'
Confguracin de httpd Server Web: Directorio conf
Order allo76deny
Allo7 fro+ all
9/Directory<
9/:irt)al;ost<
http&//777.codi-o+aestro.co+/apache/+ostrar>y>ca+,iar>doc)+ento>predeter+inado>
en>apache/
/ncl)yendo host virt)ales 12-ina 11

You might also like