You are here
Martin Carpentier - Wed, 2013/06/26 - 15:45
Hi,
I just finished setting up a LAMP appliance and launched it to a EC2 micro instance everything seems to be running ok except for the vhost for my PHP application.
In the hub I setup the hostname to mcarpentier.tklapp.com and I setup my vhost as such:
<VirtualHost *:80>
ServerName mcarpentier.tklapp.com
DocumentRoot /opt/sites/zf2-shoppinglist/public
SetEnv APPLICATION_ENV "development"
ErrorLog ${APACHE_LOG_DIR}/zf2-shoppinglist.error.log
CustomLog ${APACHE_LOG_DIR}/zf2-shoppinglist.access.log comon
<Directory /opt/sites/zf2-shoppinglist/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Now when I try to access http://mcarpentier.tklapp.com/ I get a 404 "The site you are looking for is currently not available."
File and folder permissions are correctly setup.
I don't know what I'm missing.
Thanks in advance for your help
Forum:
Update
After trying many things which were unsuccessful I decided, as a last resort, to destroy the instance and start anew.
Instead of launching an instance from a hub backup (of a local VM) like the first time I used the Hub launcher to create a new Lamp instance with the same hostname.
At first I thought it didn't work as I was still getting a 404 but after a few minutes it is now accessible!
I'm not sure of what I missed the 1st time or what I could have done wrong.
Now I have to figure out how to make it point to my app instead of the webmin page
Update 2
After destroying the instance for a second time (wrong password issues) and lauched a new EC2 LAMP appliance the 404 are back.
As it's been 2 hours already I don't think it's only a question of time.
There might be something wrong with the way the Hub sets up the tklapp.com hostnames
Any help would be appreciated
Add new comment