I am new in AWS.I am using following env.
OS: Redhat AWS: FREE ACCOUNT Webserver: Apache Database: Mysql
I have created a file for virtual host:
File name: projectname.conf
<VirtualHost *:80>
DocumentRoot /var/www/vhosts/projectname/stacks/public
ErrorLog /var/www/logs/projectname-default-error.log
CustomLog /var/www/logs/projectname-default-access.log common
RewriteEngine ON
ScriptAlias /cgi-bin-projectname/ /var/www/vhosts/projectname/conf/
<Directory "/var/www/logs/">
Options FollowSymlinks -Indexes
AllowOverride All
</Directory>
<Directory "/var/www/vhosts/projectname/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php index.html
</VirtualHost>
update httpd.conf file as well
at bottom
NameVirtualHost *:80
Include vhosts/*.conf
try to apache restart
[root@ip-1xx-xx-xx-xxx /]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
I am facing following problem. 1) I want to create virtual host for each site.So after that i can deploy multiple site. 2) How to map domain name with AWS server ? 3) i booked the domain from godaddy.com
anybody can explain with example ?
Aucun commentaire:
Enregistrer un commentaire