Map domain to host

by Thursday, June 09, 2016 0 comments
cd /etc/httpd/sites-list

sudo cp file.config file-cp.config

sudo vi file-cp.config

<VirtualHost *:80>
     DocumentRoot "/var/www/html/folder name"
     ServerName servername.com
     ServerAlias www.servername.com
     DirectoryIndex index.php index.html
        <Directory "/var/www/html/folder name">
        Options All
        AllowOverride All
        Allow from all
    </Directory>
</VirtualHost>

sudo service httpd reload

Unknown

Developer

Notes này để lưu lại những vấn đề, những công việc trong quá trình làm việc gặp phải, để sau này khi gặp phải thì có thể giải quyết nhanh chóng. Ngoài ra thì còn những thông tin khác để giúp lưu lại những kiến thức đã biết.

0 comments:

Post a Comment