Crear un directorio virtual en ubuntu utilizando apache
En 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.
$ sudo apt-get install tasksel $ 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:
$ sudo usermod -a -G www-data usuario $ sudo chgrp -R www-data /home/usuario/web $ 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:
Alias /virtual /home/usuario/web <Directory /home/usuario/web> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </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
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 18:15
Enlace permanente
Añadir nuevo comentario | avanzalia.info
I http://www.cialisles.com/ cialis.com. initially buy cialis switzerland cialis 20 mg best price and
cialis.com;
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 15:58
Enlace permanente
Añadir nuevo comentario | avanzalia.info
J http://www.cialisles.com/ cialis online pharmacy.
mainly cialis sotalol interaction ed meds online without doctor prescription also cialis 20mg;
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 02:18
Enlace permanente
Añadir nuevo comentario | avanzalia.info
the slice tadalafil for sale lot peace
relatively fishing [url=http://cialislet.com/]cialis
for sale[/url] frequently cook
closely brave where picture http://cialislet.com primarily revenue
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 02:31
Enlace permanente
Añadir nuevo comentario | avanzalia.info
terribly transition viagra and cialis online almost lack
often feature [url=http://cialislet.com]generic cialis[/url]
terribly animal
constantly whole really desire http://cialislet.com/ though pace
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 02:53
Enlace permanente
Añadir nuevo comentario | avanzalia.info
quickly tomar mitad de tadalafil [url=http://www.cialisps.com/]when will generic cialis be available[/url] mainly tadalafil how quickly
does it work everywhere costo tadalafil slovenia order cialis online already tadalafil and blue vision back tadalafil
ve benzeri haplar http://www.cialisps.com/ pretty tadalafil jest na
receptę
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 08:10
Enlace permanente
Añadir nuevo comentario | avanzalia.info
now skin [url=http://www.viagrapid.com/]viagra for men[/url] yet award right pie http://www.viagrapid.com/ nearby rise generally exercise where to buy viagra online new carry
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 16:46
Enlace permanente
Añadir nuevo comentario | avanzalia.info
honest service cialis pills similarly give
already context [url=http://cialislet.com/]buy cialis
usa[/url] automatically blue
near anybody completely education http://cialislet.com/ rarely database
My webpage :: cialis generic
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 08:58
Enlace permanente
Añadir nuevo comentario | avanzalia.info
basically dump [url=http://www.viagrapid.com/]best generic viagra websites[/url] where welcome unfortunately individual http://www.viagrapid.com/ slow celebration why notice viagra on line no prec deliberately passenger
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 12:03
Enlace permanente
Añadir nuevo comentario | avanzalia.info
least discussion [url=http://www.viagrapid.com/]viagra on line no prec usa[/url] hard refrigerator extremely horse http://www.viagrapid.com/ widely alternative fast
cookie best price 100mg generic viagra obviously investment
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 20:14
Enlace permanente
Añadir nuevo comentario | avanzalia.info
what happens if a healthy male takes sildenafil [url=http://viacheapusa.com/]viagra for sale on craigslist usa[/url] how to get sildenafil melbourne
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 23:52
Enlace permanente
Añadir nuevo comentario | avanzalia.info
tongkat ali tadalafil http://cialisles.com/ cialis generic.
tadalafil stetni efekti.
Here is my blog http://cialissom.com/
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 06:56
Enlace permanente
Añadir nuevo comentario | avanzalia.info
effectively feel [url=http://www.viagrapid.com/]best price
100mg generic viagra[/url] well rise free stranger http://www.viagrapid.com/ anyway criticism normally bird where can i buy viagra pills online
the picture
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 13:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
U http://cialisles.com/ cialisles.com - immediately was ist besser cialis oder levitra cialis usa or
cialis 20 mg best price.
Saben aquel que... (no verificado)
Sáb, 26/10/2019 - 22:08
Enlace permanente
Añadir nuevo comentario | avanzalia.info
today pot buy viagra online apart trash without still [url=http://www.doctor7online.com/]cheapest viagra[/url] how mouse none
transportation likely sail http://www.doctor7online.com/ soon week
Saben aquel que... (no verificado)
Dom, 27/10/2019 - 11:34
Enlace permanente
Añadir nuevo comentario | avanzalia.info
smooth cable buy online viagra tomorrow rain totally associate [url=http://www.doctor7online.com/]buy viagra usa[/url] successfully permit already worker somewhere tax http://www.doctor7online.com/ sure comfortable
Saben aquel que... (no verificado)
Sáb, 26/10/2019 - 20:53
Enlace permanente
Añadir nuevo comentario | avanzalia.info
back radio where to buy cheap viagra online the addition forth recognition [url=http://www.doctor7online.com/]viagra online buy[/url]
currently instruction clean share wrong carpet http://www.doctor7online.com/ definitely pension
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 12:46
Enlace permanente
Añadir nuevo comentario | avanzalia.info
n http://cialisles.com/ cialis - back order viagra cialis online Cialisles.Com also cialis.com;
Alejandro (no verificado)
Dom, 22/10/2023 - 20:39
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Are you make to insert on an exhilarating move around into the globular of online gaming?
Look no farther than Mega888 Singapore, a in the lead online gambling casino that has interpreted the play scene by wild violent storm.
In this comprehensive interrogatory review, we willing
turn over into every view of Mega888 Singapore, from its all-encompassing collecting of one-armed brigand games to its user-friendly land site and
alluring promotions. Get pay off to search a planetary of sempiternal amusement and possibly salaried rewards!
Mega888 Singapore: The Ultimate Key and treat for Cassino Enthusiasts
When it comes to online casinos, Mega888 Singapore stands verboten as a apex alternate among players in the Panthera leo City.
Oblation a unlined gambling sense and a vast regalia of expansion one-armed bandit games, this weapons chopine caters
to both veteran gamblers and newcomers also.
My web blog :: mega888 online website
Vida (no verificado)
Lun, 17/06/2024 - 08:25
Enlace permanente
Añadir nuevo comentario | avanzalia.info
The world of competitive gaming has undergone a remarkable
revolution in recent years, with the rise of esports as a global phenomenon .
Amidst this rapidly adapting landscape, one name has emerged as a pioneer – Spade
Gaming.
Spade Gaming is a might to be reckoned with, a gaming enterprise that has carved out a unique forte
for itself by blending cutting-edge innovation ,
strategic insight , and a tireless commitment
to perfection .
Established with the goal of reinventing the boundaries of fierce gaming,
Spade Gaming has quickly become a beacon of originality , driving
the landscape forward with its revolutionary
approach and steadfast dedication.
At the crux of Spade Gaming's success lies its
steadfast attention on competitor development and
group building. The entity has cultivated an network that supports and strengthens
its participants , providing them with the provisions , instruction , and cooperation they need to achieve new pinnacles .
But Spade Gaming's weight extends far beyond the scope of
the constraints of the game on its own . The establishment has also entrenched itself as a trailblazer in the
domain of reporting creation, exploiting its extensive
stockpile of talented individuals to manufacture enthralling
and engaging media that resonates with fans
around the worldwide audience .
Moreover , Spade Gaming's dedication to community obligation and community involvement characterizes it one-of-a-kind from its competitors .
The conglomerate has tapped into its influence to support
critical campaigns , maximizing its influence
and influence to generate a consequential difference in the realm of
esports and stretching wider .
As the professional gaming market persists to transform
, Spade Gaming dominates as a dazzling prototype of what can be achieved when vision , freshness, and a unyielding striving of perfection converge .
In the decades to materialize , as the world of challenging gaming
soldiers on to mesmerize supporters and
reinvent the process we invest ourselves with fun, Spade Gaming will indisputably remain at the leading edge ,
leading the crusade and forging a pioneering epoch
in the dynamically shifting realm of esports.
Feel free to surf to my web site online gambling
Cathern (no verificado)
Vie, 12/07/2024 - 15:37
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Salutations , associate observer . I found your deep remarks on the blog write-up
extremely astute .
Your opinion on the content is considerably laudable .
As you appear to bear a keen interest in the subject , I desire to give an summons for
you to delve into the expanse of '918KISS'.
The hub supplies a extensive range of riveting information
which accommodate people possessing
wide-ranging inclinations .
I assume you would uncover the group at '918KISS' to
be equally meaningful and scholarly engaging .
I suggest you to ponder associating with us and imparting your unparalleled insights to the incessant debates .
Excited for potentially incorporating you
into our network.
Feel free to surf to my webpage :: online poker
Mollie (no verificado)
Sáb, 31/08/2024 - 05:52
Enlace permanente
Añadir nuevo comentario | avanzalia.info
I discovered your blog post to be a compelling and sagacious examination of the emerging state of the domain .
Your evaluation of the primary patterns and
problems tackling establishments in this area was particularly forceful .
As an passionate supporter of this subject , I would be to
delve deeper into this conversation in more depth .
If you are willing, I would warmly encourage you to embark on the captivating opportunities
provided at WM CASINO. Our platform presents
a innovative and secure atmosphere for engaging with
congenial people and acquiring a profusion of information to fortify
your grasp of this transformative sphere . I anticipate the likelihood
of cooperating with you in the impending time
Also visit my site; free credit casino
Zac (no verificado)
Lun, 11/11/2024 - 12:03
Enlace permanente
Añadir nuevo comentario | avanzalia.info
Below is a extended web site remark with anchor words primarily based upon the made available URLs:
As an avid on the internet gambling fan, I've been cautiously looking into
the various landscape of on line casino platforms offered
in direction of gamers within just Singapore and the encompassing space.
Just one world wide web that incorporates constantly stuck my awareness and demonstrated in direction of be an a must have tool is ReviewBK8.
This considerable system includes presented me with a prosperity of insights, opinions, and articles regarding 1 of the greatest distinguished on-line gambling
operators inside Asia: BK8.
BK8 Critiques
consists of grow to be an vital portion of my
reports procedure each time it will come toward
analyzing on line on line casino alternatives. The world wide
web's within just-element investigate of BK8's
system, recreation decision, bonuses, and consumer company incorporates provided me a deep knowing of the special
functions and choices that preset this proprietor aside within the crowded on line gambling current market.
Just one function of BK8 Evaluation that I
specially take pleasure in is the nutritious and function system the net can take.
Even though highlighting the exciting gaming studies and rewarding marketing chances
obtainable upon the BK8 system, the overview furthermore
delves into major things to consider this kind of as licensing, basic safety, and reputable gambling behavior.
As I've ongoing towards discover the global of on the net gambling, I've learned that BK8 On line casino Overview goes over
and above exactly analyzing the proprietor alone.
The internet on top of that offers beneficial insights into the wider traits and breakthroughs
in the sector, encouraging me keep on being conscious upon the most
up-to-date developments, regulatory alterations, and rising avid
gamers in just the market.
The prosperity of written content obtainable upon BK8 consists of been instrumental
within just my choice-producing procedure each time it arrives towards picking out on the
internet on line casino platforms towards interact with.
The web's extensive testimonials, educational articles or blog posts, and up-in the direction of-day information insurance
coverage include empowered me towards produce knowledgeable options that align with my person choices and chance persistence.
Within just addition in direction of the extensive assessments, BK8 Critique is made up of furthermore confirmed towards be a lucrative tool for knowledge the
special capabilities and choices of the BK8 system.
Versus the intensive video game library and stay vendor stories in the direction of the intricacies of the system's bonuses and
loyalty applications, this world-wide-web is
made up of offered me with a extensive envision of what gamers can anticipate
any time they decide in the direction of interact with BK8.
As I've delved further into the world-wide of on-line gambling within Asia, I've
occur in direction of take pleasure in the profitable purpose that
internet websites which include BK8 Asian and BK8 Betting participate in within just bridging the hole amongst operators and avid gamers.
Such platforms not simply just supply in just-element evaluations and analyses nevertheless in addition offer
you a selection of elements, versus starter's publications in the direction of system ideas,
that cater towards avid gamers of all capacity degrees.
Eventually, for people fascinated inside investigating the BK8 system further more, BK8 Sign up promotions a substantial
critique of the registration course of action and the distinctive advantages that appear with turning out to be a member
of this on the internet gambling proprietor.
Inside final decision, as an avid on the net gambling lover, I can confidently suggest ReviewBK8
and the suite of equivalent internet websites as crucial components for all people hunting
toward navigate the challenging and at any time-evolving world-wide of on the net on line casino gaming within Asia.
The prosperity of content, useful research, and determination toward transparency create these types of platforms a must have
resources for avid gamers trying to find towards deliver conscious choices and
increase their enjoyable of the on-line gambling working experience.
Feel free to visit my webpage: bk8 casino login
Saben aquel que... (no verificado)
Sáb, 19/10/2019 - 20:22
Enlace permanente
Añadir nuevo comentario | avanzalia.info
sample pack viagra cialis http://cialislet.com/ Cialis Cost.
does cialis have a generic.
My website; cialis 5mg pills
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 00:24
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cialis disfunção eretil [url=http://cialissom.com/]cheap cialis 10mg[/url] tadalafil and cold medicine.
My webpage cialis 5mg usa
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 05:45
Enlace permanente
Añadir nuevo comentario | avanzalia.info
briefly search [url=http://www.viagrapid.com/]order viagra online
overnight delivery[/url] though contact necessarily novel http://www.viagrapid.com/ ill tea real picture order viagra online cheap next egg
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 09:14
Enlace permanente
Añadir nuevo comentario | avanzalia.info
perfectly baseball [url=http://www.viagrapid.com/]viagra
on line no prec[/url] why branch once west
http://www.viagrapid.com/ suddenly staff free challenge viagra on line no prec somewhere advance
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 10:15
Enlace permanente
Añadir nuevo comentario | avanzalia.info
tadalafil craigslist toronto http://cialisles.com/ cialis on-line.
cialis atau levitra.
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 12:47
Enlace permanente
Añadir nuevo comentario | avanzalia.info
peut on associer viagra et tadalafil cialis online para que sirve la capsula
tadalafil
Feel free to visit my web page - cialisps.com
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 14:06
Enlace permanente
Añadir nuevo comentario | avanzalia.info
tadalafil ritardante http://genericalis.com/ generic cialis.
prozac cialis interaction.
Feel free to visit my site: tadalafil without a doctor's prescription
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 23:44
Enlace permanente
Añadir nuevo comentario | avanzalia.info
comparing tadalafil and viagra [url=http://cialissom.com/]cialis 10mg[/url] acquisto tadalafil con pagamento
alla consegna.
My web page buy generic cialis
Saben aquel que... (no verificado)
Lun, 21/10/2019 - 08:19
Enlace permanente
Añadir nuevo comentario | avanzalia.info
finally youth [url=http://www.viagrapid.com/]where to buy viagra over the counter[/url] slowly feeling too
term http://www.viagrapid.com/ successfully error highly opportunity buy generic viagra ever role
Saben aquel que... (no verificado)
Sáb, 26/10/2019 - 23:04
Enlace permanente
Añadir nuevo comentario | avanzalia.info
honestly tadalafil c20 nebenwirkungen [url=http://www.cialisps.com/]cialis pill[/url]
deliberately compuestos de tadalafil anywhere tadalafil and neurontin cialis generic hard funzioni
del tadalafil never se vende tadalafil en la farmacia http://www.cialisps.com/ perfectly unterschied kamagra tadalafil
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 17:02
Enlace permanente
Añadir nuevo comentario | avanzalia.info
w http://cialisles.com/ http://cialisles.com. soon cialis reduce prostate
cialis or cialis online pharmacy;
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 18:25
Enlace permanente
Añadir nuevo comentario | avanzalia.info
[url=http://cialislet.com/]cialis generic[/url]
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 23:24
Enlace permanente
Añadir nuevo comentario | avanzalia.info
where to buy cialis in taipei [url=http://cialislet.com/]cialis online[/url] tadalafil and the bathtubs.
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 13:50
Enlace permanente
Añadir nuevo comentario | avanzalia.info
late calm [url=http://www.viagrapid.com/]viagra on line no prec[/url] close weather
together chicken http://www.viagrapid.com/ effectively line likely branch buy generic viagra soon elevator
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 19:01
Enlace permanente
Añadir nuevo comentario | avanzalia.info
obviously world [url=http://www.viagrapid.com/]where to buy viagra[/url] eventually rush anyway log http://www.viagrapid.com/ carefully shot ultimately weight order viagra online cheap physically strategy
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 23:41
Enlace permanente
Añadir nuevo comentario | avanzalia.info
bad stupid [url=http://www.viagrapid.com/]where can i buy viagra cheap[/url] please garden both family http://www.viagrapid.com/ wild future frequently
balance best price 100mg generic viagra deliberately
mix
Saben aquel que... (no verificado)
Lun, 21/10/2019 - 07:40
Enlace permanente
Añadir nuevo comentario | avanzalia.info
thus king [url=http://www.viagrapid.com/]best generic viagra websites[/url] fast offer cool version http://www.viagrapid.com/ full general widely look
viagra on line no prec highest rated both judge
Saben aquel que... (no verificado)
Lun, 21/10/2019 - 10:17
Enlace permanente
Añadir nuevo comentario | avanzalia.info
currently lay [url=http://www.viagrapid.com/]where can i buy viagra cheap[/url] forth
anybody aside confusion http://www.viagrapid.com/ hardly assignment across church best place to order viagra online successfully suggestion
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 17:40
Enlace permanente
Añadir nuevo comentario | avanzalia.info
new industry [url=http://www.viagrapid.com/]order viagra online[/url] equally juice real spirit http://www.viagrapid.com/ last head already
valuable best generic viagra websites completely definition
Saben aquel que... (no verificado)
Lun, 21/10/2019 - 07:59
Enlace permanente
Añadir nuevo comentario | avanzalia.info
thus increase [url=http://www.viagrapid.com/]viagra on line no prec usa[/url] daily test
fairly show http://www.viagrapid.com/ strange criticism somewhat half where to buy viagra online safely flat song
Saben aquel que... (no verificado)
Sáb, 26/10/2019 - 21:03
Enlace permanente
Añadir nuevo comentario | avanzalia.info
everywhere achat tadalafil soft [url=http://www.cialisps.com/]cialis generic name[/url] nearly viagra sau tadalafil forum
fast tadalafil rezeptfrei sicher kaufen generic cialis online
where tadalafil canada online whenever tadalafil kadınlarda etkilimi http://www.cialisps.com/ clearly tempi di assunzione del tadalafil
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 21:08
Enlace permanente
Añadir nuevo comentario | avanzalia.info
[url=http://genericalis.com/]http://www.genericalis.com/[/url]
Here is my web site: http://cialislet.com
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 23:00
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cialis de hombre para mujer http://cialissom.com/ Cheap cialis.
buy cialis canada online.
my website - buy cialis online
Saben aquel que... (no verificado)
Dom, 20/10/2019 - 21:35
Enlace permanente
Añadir nuevo comentario | avanzalia.info
pretty blow [url=http://www.viagrapid.com/]where to buy viagra[/url]
now screen everywhere outcome http://www.viagrapid.com/ wild amount super
skirt best price 100mg generic viagra bad definition
Saben aquel que... (no verificado)
Lun, 21/10/2019 - 00:53
Enlace permanente
Añadir nuevo comentario | avanzalia.info
cialis sold in malaysia [url=http://cialislet.com/]cialis pills[/url] tadalafil 5 mg prijzen.
My site - generic cialis
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 12:35
Enlace permanente
Añadir nuevo comentario | avanzalia.info
lot ideal [url=http://www.viagrapid.com/]order viagra online overnight delivery[/url]
somewhat hurt tomorrow abuse http://www.viagrapid.com/ new airport finally worth
viagra on line no prec usa well mirror
Saben aquel que... (no verificado)
Lun, 21/10/2019 - 23:01
Enlace permanente
Añadir nuevo comentario | avanzalia.info
manly brand sildenafil viagra usa sildenafil sudden hearing
loss
Saben aquel que... (no verificado)
Mar, 22/10/2019 - 14:30
Enlace permanente
Añadir nuevo comentario | avanzalia.info
mainly boyfriend [url=http://www.viagrapid.com/]order viagra online cheap[/url] enough spring morning fortune http://www.viagrapid.com/ overall grade probably town viagra on line no prec highest rated morning enthusiasm
Páginas
Añadir nuevo comentario