Now i want to have my php application with Apache running in the same server with same IP but port http://xxx.xxx.xxx.xxx:81 to display in the web
There are mainly 3 important steps
- Change httpd.config (configuration file for apache)
Find line with Listen xxx.xxx.xxx.xxx (or localhost) and change to Listen 0.0.0.0:81
Find line with ServerName xxx.xxx.xxx.xxx (or localhost) and change to ServerName 0.0.0.0:81
Save the file and restart apache - Go to windows firewall and add Port 81 in inbound rules
- Add Port 81 to EC2 Security Group. Remember to apply the rule after added.
Done. It's work like charm!
No comments:
Post a Comment