OVH Community, votre nouvel espace communautaire.

Création Vhost VPS Classic


little_boy
11/03/2015, 18h02
Merci pour ton aide shirokoweb, je vais essayer ce que tu me conseille

shirokoweb
10/03/2015, 22h56
Comment les sites peuvent-ils être accessibles si les vhosts 'ont pas été créés / configurés ?
mkdir /var/www/site1 /var/www/site2 /var/wwwsite3 etc.
nano /etc/apache2/sites-available/site1
Code:

        ServerName www.site1.fr
        ServerAlias site1.fr
        ServerAdmin admin@site1.fr

        DocumentRoot /var/www/site1
        
                Options FollowSymLinks
                AllowOverride All
        
        
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        

        ErrorLog ${APACHE_LOG_DIR}/error.log

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

        CustomLog ${APACHE_LOG_DIR}/access.log combined

Sinon y'a mieux que LAMP : LEMP https://www.youtube.com/watch?v=A80SJZObyFA

little_boy
10/03/2015, 21h20
Bonsoir,

J'ai souscris à un VPS Classic avec une distri LAMP et je rencontre des difficultés pour créer mes vhost.

Les pointages DNS sont ok, mes différents dossiers ayant pour objectifs d'accueillir mes différents sites le sont aussi.

Mes sites sont donc bien accessibles via :
http://lenomdedomainedusite1/lerepertoiredusite1
http://lenomdedomainedusite1/lerepertoiredusite2
http://lenomdedomainedusite2/lerepertoiredusite1
...

Quelqu'un pour me guider dans la création des vhosts?

Merci.