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

I http://www.cialisles.com/ cialis.com. initially buy cialis switzerland cialis 20 mg best price and

cialis.com;

J http://www.cialisles.com/ cialis online pharmacy.

mainly cialis sotalol interaction ed meds online without doctor prescription also cialis 20mg;

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

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

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ę

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

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

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

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

what happens if a healthy male takes sildenafil [url=http://viacheapusa.com/]viagra for sale on craigslist usa[/url] how to get sildenafil melbourne

tongkat ali tadalafil http://cialisles.com/ cialis generic.

tadalafil stetni efekti.

Here is my blog http://cialissom.com/

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

U http://cialisles.com/ cialisles.com - immediately was ist besser cialis oder levitra cialis usa or

cialis 20 mg best price.

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

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

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

n http://cialisles.com/ cialis - back order viagra cialis online Cialisles.Com also cialis.com;

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

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

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

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

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

sample pack viagra cialis http://cialislet.com/ Cialis Cost.

does cialis have a generic.

My website; cialis 5mg pills

cialis disfunção eretil [url=http://cialissom.com/]cheap cialis 10mg[/url] tadalafil and cold medicine.

My webpage cialis 5mg usa

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

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

tadalafil craigslist toronto http://cialisles.com/ cialis on-line.

cialis atau levitra.

peut on associer viagra et tadalafil cialis online para que sirve la capsula

tadalafil

Feel free to visit my web page - cialisps.com

tadalafil ritardante http://genericalis.com/ generic cialis.

prozac cialis interaction.

Feel free to visit my site: tadalafil without a doctor's prescription

comparing tadalafil and viagra [url=http://cialissom.com/]cialis 10mg[/url] acquisto tadalafil con pagamento

alla consegna.

My web page buy generic cialis

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

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

where to buy cialis in taipei [url=http://cialislet.com/]cialis online[/url] tadalafil and the bathtubs.

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

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

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

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

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

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

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

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

cialis de hombre para mujer http://cialissom.com/ Cheap cialis.

buy cialis canada online.

my website - buy cialis online

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

cialis sold in malaysia [url=http://cialislet.com/]cialis pills[/url] tadalafil 5 mg prijzen.

My site - generic cialis

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

manly brand sildenafil viagra usa sildenafil sudden hearing

loss

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

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.