I have Ubuntu 32 bit AMI(amazon machine image) on amazon cloud.
I have installed the LAMP stack on it.
apache: 2.4.7
mysql: 5.5.38
php: 5.5.9
Above are specification for A-M-P
Then I got the one public IP address.(x.x.x.x)
Now I need to create the multiple ports.
LIKE x.x.x.x:81 x.x.x.x:82
is it possible??
I have done some steps for the ports configuration as follows:
- vim /etc/apache2/ports.conf ==> add line Listen 81
- in virtual host file
<VirtualHost *:81> ------- </VirtualHost>
- vim /etc/apache2/hosts ==> added line 127.0.0.1 vhost_name
- sudo a2ensite vhost_file_name.conf
- sudo /etc/init.d/apache2 restart