Configuration Required to see uploaded logo in Producerweb site.
// Ideally it must be on the machine where producerweb is running(Right now it is running on producer machine)
1) Apache 2 must be Installed:
If it is not installed then use the following command to install: sudo apt-get install apache2
Go to location /var/www/ and create folder images/documentGroup/ and give read and write permissions on this folder(sudo chmod 777 images/documentGroup/ ).
// Must be on producerMachine as the logos on producerweb site will be rendered from here.
2) Run following commands to make configurations
sudo vi /etc/apache2/httpd.conf
Add the following lines in this httpd.conf file.(Change 192.168.10.253 to your local machine IP and gold to your local machine name)
ServerName ec2-50-112-241-186.us-west-2.compute.amazonaws.com
DocumentRoot /home/ubuntu
Alias /ecomail "/home/ubuntu"
<Directory "/home/ubuntu">
Options None
AllowOverride None
Allow From all
</Directory>
3) Now restart apache2 with following 2 commands:
cd
sudo service ../../etc/init.d/apache2 restart
4)Now try to hit url:(replace 192.168.10.253 with your machine IP)
http://192.168.10.253/ecomail/
4.1)If it says the below, then it means it is not configured properly
"Not Found
The requested URL /ecomail was not found on this server."
4.2)If it says the below, then it means it is successfully configured
"Forbidden
You don't have permission to access /ecomail/ on this server."
No comments:
Post a Comment