sleed Posted January 31, 2014 Report Posted January 31, 2014 In acest tutorial va v-oi arata cum sa setati un host virtual pe apache, Debian/Ubuntu.In I rand, sa aveti apache2 instalat : sudo apt-get install apache2II.Creati un nou director : sudo mkdir -p /var/www/jepele.com/webIII.Garantati permisiile necesare : sudo chown -R $USER:$USER /var/www/jepele.com/webl IV. sudo chmod -R 755 /var/www, pentru a avea acces la folderu web din exterior.V.Apoi cu urmatoarea comanda sudo nano /var/www/jepele.com/web/index.html, v-om edita si v-om crea indexul.. Aici ve-ti scrie ce doriti.VI.Configuram o noua parte a Virtual Hostului : sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/jepele.comVII. Cu comanda aceasta, v-om porni virtual hostul : sudo nano /etc/apache2/sites-available/jepele.comVIII. Sub ServerAdmin , adaugam linia aceasta : ServerName jepele.comIX.Va arata cam asa : <VirtualHost *:80> ServerAdmin webmaster@jepele.com ServerName jepele.com ServerAlias www.jepele.com......X.Sa fie adaugat Document Root, sub server alias : Exemplu : DocumentRoot /var/www/jepele.com/web XI.Actiam modulul prin : sudo a2ensite jepele.comXII. Restart Apache : service apache2 restart & /etc/init.d/apache2 restartSursa : Welcome to The Apache Software Foundation! + tastata , dezvoltata de mine. Merge 100 %. Va multumesc!P.S. in loc de jepele.com , puteti adauga ce vrei voi. Quote
quantum Posted January 31, 2014 Report Posted January 31, 2014 Legat de gramatica: v-om se scrie vomve-ti se scrie vetiv-oi se scrie voi.Multumesc Quote
sleed Posted January 31, 2014 Author Report Posted January 31, 2014 Bine bine mersi de precizari. Is nedormit de ieri de la 11 seara, am avut de facut un proiect pentru scoala, si vad cam dublu acum.Trebuie sa i au o pauza intradevar. Quote
aelius Posted January 31, 2014 Report Posted January 31, 2014 (edited) Pentru development, cred ca v-ar 'coafa' si asta: https://rstforums.com/forum/47252-mass-virtual-hosting-cu-rewrite.rstOntopic:Este bine sa specificati si directivele pentru logging (separate):ErrorLog ${APACHE_LOG_DIR}/yourwebsite.com-error_logCustomLog ${APACHE_LOG_DIR}/yourwebsite.com-access_log combined Edited January 31, 2014 by aelius Quote