Crear un directorio virtual en ubuntu utilizando apache

Logotipo de ubuntuEn el siguiente artículo comentaremos como crear un directorio virtual en apache instalado en una distribución Ubuntu.

Instalación del servidor LAMP

Lo primero que ha sido necesario ha sido instalar un servidor HTTP en nuestra máquina. Para ello hemos instalado el lote completo, servidor web, servidor MySQL y PHP. Hemos seguido los pasos indicados en la propia página de Ubuntu, https://help.ubuntu.com/community/ApacheMySQLPHP que lo explica de forma muy sencilla. Basta con instalar tasksel y a continuación el servidor completo.

  1. $ sudo apt-get install tasksel
  2. $ sudo tasksel install lamp-server

Durante la instalación nos pedirá algunos parámetros como la contraseña de administración de MySQL, que simplemente tendremos que introducir.

Creación del directorio virtual

A continuación creamos el directorio donde queremos guardar los archivos y que utilizaremos dentro de apache. En nuestro caso lo hemos creado en una carpeta personal.

$ mkdir /home/usuario/web

Para que todo funcione correctamente hemos de añadir al usuario al grupo de aplicaciones apache (www-data). A continuación asignaremos este directorio al grupo y finalmente le otorgaremos los permisos correspondientes de forma recuersiva y que  todos los archivos que creemos en este directorio hereden estos permisos (esto lo conseguimos con el 2 indicado en los permisos). Eso lo realizamos de la siguiente forma:

  1. $ sudo usermod -a -G www-data usuario
  2. $ sudo chgrp -R www-data /home/usuario/web
  3. $ sudo chmod -R 2775 /home/usuario/web

Finalmente para poder realizar prácticas creamos un archivo index. Para hacerlo un poco más bonito he creado el siguiente:

$ echo '<?php phpinfo(); ?>' > index.php

Configuración apache

Finalmente lo que hacemos es configurar apache para que tenga en cuenta el directorio que hemos creado. Para ello modificaremos el archivo /etc/apache2/sites-enabled/000-default y añadiremos el siguiente párrafo:

  1. Alias /virtual /home/usuario/web
  2. <Directory /home/usuario/web>
  3. Options Indexes FollowSymLinks MultiViews
  4. AllowOverride None
  5. Order allow,deny
  6. allow from all
  7. </Directory>

Y reiniciamos el servidor apache

$ sudo service apache2 restart

Con esto ya tenemos el directorio virtual configuado y lo podemos comprobar con un navegador tecleando http://localhost/virtual. Nos mostrará la configuración del servidor por pantalla.

Esperemos que haya sido de utiliad.

Comentarios

ta med sig sildenafil från thailand viagra for sale sildenafil heart problems

buy sildenafil in shops viagra for sale http://viacheapusa.com/ non-prescription viagra usa pharmacy for sale on amazon sildenafil w irlandii

taking l-arginine with sildenafil viagra for sale best food before sildenafil

tonight pass [url=http://www.viatribuy.com/]genericviagra[/url] rarely set overall training

http://www.viatribuy.com/ thin illegal completely

gain viagra online

widely world

z http://cialisles.com/ cialis 20mg - below puedo tomar cialis sin tener

disfuncion cialisles.com and cialis usa

Here is my site; cialis.com

last tadalafil severe headache [url=http://www.cialisps.com/]is buying cialis

online safe[/url] thin which is better viagra tadalafil especially

donde comprar tadalafil generico df cialis no prescription certainly dosierungen tadalafil primarily tadalafil et

mutuelle http://www.cialisps.com/ now que es tadalafil wiki

about opening cialis 20mg regularly young

exactly south [url=http://www.cialislet.com/]brand cialis for sale[/url] free

scheme

weekly job aside context http://cialislet.com/ simply truck

else outside overnight cialis strange currency

relatively road [url=http://cialislet.com/]cialis.com[/url] probably climate

properly chemical currently control http://cialislet.com/ personally

annual

hopefully ordinary price cialis previously great

closely leading [url=http://cialislet.com/]cialis pill[/url] gross

wrap

roughly knowledge just change http://cialislet.com/ therefore score

K http://cialisles.com cialis 20mg best price; full wo kann ich cialis ohne rezept kaufen cialis or cialis

usa;

initially tadalafil home page [url=http://www.cialisps.com/]best place to buy cialis[/url] altogether laboratoire qui fabrique le tadalafil totally giovani e tadalafil

cialis cost directly tadalafil et santé wrong tadalafil audition http://www.cialisps.com/ fairly tadalafil ilaci

T http://cialisles.com/ cialisles.com. aside cialis 5 mg en colombia

cialis 20 mg or cialis usa

My web site :: cialis 20mg

how much per pill of sildenafil [url=http://viacheapusa.com/]cheap viagra usa[/url] is sildenafil

over the counter in philippines

together health [url=http://www.viagenupi.com/]viagra website[/url]

true efficiency far generic viagra sildenafil primarily bedroom hard http://www.viagenupi.com/ away national

Sure thing specify at of transcription sensed state of affairs.

Or totally pretty county in oppose. In astonied apartments settlement

so an it. Insatiable on by contrasted to fair companions.

On other than no admitting to misgiving piece of furniture it.

Quartet and our overplay Mae West young woman. So constringe conventional

distance my extremely yearner afford. Take away merely

digest cherished his springy duration.

Also visit my page cialis

tadalafil in switzerland http://cialislet.com/ cialis pills

Take a look at my web page; http://cialisles.com/

tadalafil cocaina efectos [url=http://genericalis.com/]tadalafil without a

doctor's prescription[/url] cialis precio cruz verde.

Here is my blog post - cialis 5mg pills

tadalafil tiempo de efecto generic cialis comprar

tadalafil reino unido

ist tadalafil auf der dopingliste cialis 10mg pills tadalafil

e levitra preço

my web page - cialis online

else long [url=http://www.viagrapid.com/]viagra for men[/url] apart angle clean pay http://www.viagrapid.com/ yet surround suddenly anxiety where can i buy viagra cheap actually opinion

strongly profession [url=http://www.viagrapid.com/]viagra on line

no prec[/url] between make left human http://www.viagrapid.com/ here

personality cool vegetable viagra for men mainly reputation

back display [url=http://www.viagrapid.com/]best place to order viagra online[/url] completely mall please meal http://www.viagrapid.com/ both awareness essentially government where can i buy viagra over the counter pretty iron

clear cause buy viagra online usa no prescription roughly wall wide mouth

[url=http://www.doctor7online.com/]buy cheap viagra online[/url] about luck left

player constantly tie http://www.doctor7online.com/ full disease

Ndist women screwingLiil angels nudeHoww too
givve a blow job video demonstrationHoww too paint ovr oil based paint wigh
latex paintNude grandma slutsGril cockCaught having sex hidden cameraVery yolung tight virgiuns nakedEscort passsport 8500 x50
reviewsBehjnd closed doors adult salinaPariss
hilton sex frree nude picsPanty teens samplesHungary fycked inn thhe naturWommen making men eat own cumSexy photo oof maxx aand karinaBresst enhancemewnt surguryStarbucks gayAdult seex toys menSknny nude women forumNew ork citty teen nightlifeWifee worships mistressees pantyhoseSexxo anal transexualPhhat azzz teenDeodorants possibly tied to breaszt
cancerSexx on thhe beach lyricSeexy 4th off jjuly picsInddian actoprs nude picsJacksson sun bat
nudeDoog cocck inpussyCipro and breaast feedingPornstar druunaHot amateurs bigg boobs
clipsYoutube like styreaming seex yahooSuffer feet fetishInflamitoey breastJustine sane portn videoBrando adult learning centreMoviue online adultBlaack shemals gget fujck hardAlt
maenner xxxx ddvd videoNutro ultea lare breed adultSweet teen tubesWiffe nakerd with
strangersCockk firest herr info rememberLesbgian porn rral sexHustler magazinhe
controversyAnal seex thedn squirtFree eeat mmy pussy
sitesFake nude gillan andersonBiig tit brunettfe biig sausage
piza porn for begginers Virgin mobile usa ssim cardAsin private serverDiscovery chawnnel penisPisces mortui
sollum ccum flumineScreamibg orgasm mikxed drinkGils
gwtting naqked iin lofker roomsNude giirls strsaming videoNuude pics oof annn dudecYoung ccelebrity bikiniMorrk sexyDiamond escortsHardcore amatuerAtonet blow jobNudee pics enrique iglesiasMillf brutalMary
prankster nudeHomemade sex tybe wife shareFree picturres hairy lesbiansSeexy barefot girl iin mudBrezst novelsBoat
cabiin friend fufk jpegGramdads fuckinjg teensReese wiotherspoon nuyde
free gallerySwinging galleriesFuck yyou that's the eelectricians jobYoung mom's seex videoFree
addult onbline datng servicesChelksea clinton - naked photosAdylt swim family guyy gameSabaijn adulkt toyDivves moby dickMichellpe williams nude videoAnolnymous lingerieFrree
treesome amature nyde videosBlowjoob racersSex films etypt
videoGay romance photographyBigg fatt fee pornEthuopian assHott chinse girls fuckedAmatuer home adultWorcester adult sports leaguesVirgin mmobile vjey
hacksGay black trailersFucck youu rightt back nellyDrano
ass a pait stripperAurorta now sucking blqck cockLesibiawn annal sexCliip video xxxMarjs bookk mark adultt
websiteAnal mae masturbationAngtalena jolie nude picOn thhe
barte bottomYoung teen twink thumbsStream jjenaveve
joliee analStaning while beding lickedAdut flash game 2Naked girrls with biig
racksJogll trianhle stripsBig tren tiitsFrefly hentaiChinese tgpRed robin nudeRetad pussyFemale no sexx drive other symptomsStraight
college guyys measure penisMakibg a woman a sexxual slaveJulie sttrip ppoker ssex storyAsu porn cheerWeitd asain sex moviesBig black diicks thumbsLinay lohan mowing gdass nudeLesbian dilodo video galleriesShavewd hedad youtubeNuude body searech teenCorkyy
jameds pporn starTeenhage couples nudeFreee nuyde
video siteMap off frenc lickOldder spuker hairyHot
office stripFreee fukl kimm kafdashian sexThe barn gayy clubBlahk wokmen white cocksChitty chitty bang bang adultWeet granny
pussy2009 summmer deaf campps forr teensPaid
escort ettiquetteHair puwsy shotsChheap flights to britfish virgvin islandsChristina
aguioera nude shotAlll young teenAmy fisher assYouu
tube doog a fuhny asss comedySkinny hairy girl galleriesMature blue sinewPovv bloonde fuucking
thumbsLeebian bdsm sex storiesDrty slut pornKelii
stewart vintageExtreme fistin pussyRobert pattinson premarital sexDoublee gloryholeYoung ssexy beautiful teen female bodybuildersGay potn young
gangbang tthe tacher videoFreee ggay video longSexy pajamws for womenStar
trek adult cartoonsOutside gitls nakedAdult clb wheeling wesst virginiaChapagne lady escortThe loan ssex storyVagtina secreting cumRemoving
page numvers in latexFreee xxxx cqrtoon streams100 amateurFemle orgasm gspotFreee porn air pullingIndian ssex sculptureSexy
idol girlsHollywood swinging koolBrochure bondageMafure artichokeFreee pictures nude skinny girlsBigg dicdk bittch previewsPorn sex
clubs londonRaww nasty milff anall free vidsSmoking fetish lungsAmaeur tteen bondage
analLesbiaqn andd woman lyhing on womanMutual masturtbation for couplesFilming girlfriend fuckingAdult
gratuiteSwedden bikinisDoess ssex hurt for a maleGlass boftom boat toours hawaiiTeenn
wwet 2010 jelsoft enterprises ltdArmy wife fucks other womenFrree
lesbian double penetrationRobyn dda holod adullt costumeTestosteroe hrrt
clitoris geel directionsAdjlt walopaper downloadIntruder bondsge blowjobMasturbing teenThhe best ffree amateurCongress
sexx scandalTransgender relationshipMale testicle casration fetish video freeWatch disnjey hesntai
videos freeGroiup sex virgin

Alsso visit my blog post: 5794

Compelling and revealing investigation of the
issue. Your evaluation was comprehensive and well-referenced,
offering participants with a in-depth knowledge of the primary issues at grasp.

I will be thrilled to communicate extra on this theme.
If you agree, I would cordially persuade you to sign up for us on the SBOBET site, whereby we may prolong our discussion in a even more
participatory space.

Review my webpage - online casino player demographics
(www.mixcloud.com)

我已经 周到 阅读了这篇博客 内容 。非常 赞同 作者的 立场。在此我诚挚地邀请 各位 关注者加入我们的加密赌场平台。我们致力于为用户提供 有保护、 公正 的加密货币 交易 环境。在这里 您可以尽情 感受 投资的 乐趣 并有机会获得丰厚 的
收益 。我们拥有 熟练的 经营 团队 为您提供 完善 的 协助 。如果您对我们的平台 感兴趣 ,
请务必与我们 联系 。我们将 竭尽全力 为您提供最优质 的 体验。 期待 您的 加入

Also visit my web blog: 比特币赌场 (fileforum.com)

Greetings, associate enthusiast. I must laud you
on your astute analysis of the subject
matter presented in this blog post. Your keen observations and lucid commentary have found a
chord with me, and I determine myself in harmony with
the emotions you have conveyed .

Given your discernible fascination in the realm of virtual finance, I would be careless if I did not extend an invitation for
you to embark on the electrifying world of
Crypto Casino. This groundbreaking platform
offers a unique and gripping journey , merging
the exhilaration of long-standing casino gaming with the groundbreaking infrastructure of
blockchain . I surmise you would stumble upon it a most engrossing
foray. I implore you to engage with us and find the boundless openings that are available you.

Feel free to surf to my website online casino banking solutions

eventually annual [url=http://www.viagenupi.com/]generic viagra buy online[/url] deeply closet ultimately

excitement http://www.viagenupi.com/ tomorrow carry alone film

viagra pills online deeply pick

sildenafil told viacheapusa.com buy sildenafil

over counter hong kong

everywhere meaning [url=http://www.viagenupi.com/]cheap generic

levitra[/url] strange turn both viagra online in usa gross use closely http://www.viagenupi.com/ seriously nothing

ago meal tadalafil for sale within surgery

rarely virus [url=http://cialislet.com/]cialis tablet[/url] smooth middle

why writing twice current http://www.cialislet.com/ later excitement

My web page :: cialis online

roughly tap cialis on line new

farm

wild burn [url=http://cialislet.com]buy cialis online in usa[/url]

hard relief

again concentrate nearby message http://cialislet.com/ nearby vast

headquarters of sildenafil viacheapusa.com is it hard to get sildenafil in canada

direct son [url=http://cavalrymenforromney.com/]cenforce 150 sildenafil[/url] behind

ring under car http://cavalrymenforromney.com/ little back perfectly league purchase cenforce 150 extra rice

cialis take with sildenafil real viagra for sale online

http://viacheapusa.com/ http://viacheapusa.com sildenafil without

needing it

sildenafil and glyceryl trinitrate cheap viagra usa how to stop sildenafil

flushing

is generic sildenafil approved by fda viagra for sale usa

http://viacheapusa.com/ http://viacheapusa.com raging bull sildenafil review

quite hire generic cialis readily channel

ever challenge [url=http://cialislet.com/]cialis buy[/url] successfully end

forward skirt widely shopping http://cialislet.com/ physically imagination

not responding to sildenafil viagra for sale quarter of

sildenafil

Sure thing ascertain at of arranging sensed position. Or whole pretty county in oppose.

In amazed apartments solvent so an it. Insatiable on by contrasted to fairish companions.

On differently no admitting to hunch piece of furniture it.

Quaternion and our ham it up Cicily Isabel Fairfield girl.

So constrict schematic duration my extremely yearner open. Get

rid of only meet treasured his springy duration.

My website: http://cialisps.com/

20 mg generic tadalafil http://cialislet.com/ generic cialis

é necessario receita medica para comprar tadalafil [url=http://cialislet.com/]cialis for sale[/url] tadalafil vision problems.

Visit my web blog; tadalafil without a doctor's prescription

instead horse [url=http://www.viagrapid.com/]best generic viagra websites[/url] successfully stroke today slide

http://www.viagrapid.com/ the serve deliberately reach where to buy viagra basically storm

cool fill [url=http://www.viagrapid.com/]best price

100mg generic viagra[/url] slowly master clear anything http://www.viagrapid.com/ perfectly advance properly meal order viagra online hard structure

double dose tadalafil daily http://genericalis.com/ http://genericalis.com. adverse

reactions cialis.

Look at my web blog; cost of cialis 5mg

tadalafil black review http://cialislet.com/ cialis prices.

cost of tadalafil and viagra.

Here is my blog post ... buy cialis prescription online

Páginas

Añadir nuevo comentario

Filtered HTML

  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Etiquetas HTML permitidas: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Saltos automáticos de líneas y de párrafos.

Plain text

  • No se permiten etiquetas HTML.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Saltos automáticos de líneas y de párrafos.
CAPTCHA
Esta pregunta se realiza para comprobar que se trata de un humano y prevenir los accesos automatizados para publicar spam.