raulyjo Posted December 5, 2016 Posted December 5, 2016 Hi people. Im just fixing some problems on my domain but I can't solve it. I have a website in a amazon server and when I'm trying to enter in my new domain, it only appears this image I was searching on Internet about how to fix it and a tried this in my server: - I installed Ciberduck - I went home/bitnami/apps/MYWEBSITE/htdocs/site/config.php and modify the last line: $config->httpHosts = array('mywebsite.es', 'www.mywebsite.es'); - I modified a line of a hide doc called . htaccess like this: # RewriteBase / # RewriteBase /mywebsite/ # RewriteBase /~user/ - Then i modified miweb.conf doc in home/bitnami/apps/mywebsite/conf like this: <VirtualHost *:80> ServerAdmin Raul DocumentRoot "/opt/bitnami/apps/mywebsite/htdocs" ServerName mywebsite.es </VirtualHost> <VirtualHost *:80> ServerAdmin Raul DocumentRoot "/opt/bitnami/apps/mywebsite/htdocs" ServerName www.mywebsite.es </VirtualHost> <Directory "/opt/bitnami/apps/mywebsite/htdocs"> Options Indexes MultiViews AllowOverride All <IfVersion < 2.3 > Order allow,deny Allow from all </IfVersion> <IfVersion >= 2.3> Require all granted </IfVersion> </Directory> - And finally I restarted the server with Putty and this command in bitnami/apps/miweb/conf : sudo /opt/bitnami/ctlscript.sh restart apache Sorry for my bad english, I tried to explain best as I can
Ferdi Derksen Posted December 15, 2016 Posted December 15, 2016 Hi Raulyjo, Maybe you can repost the image - it isn't viewable now. Regarding your problem you might consider merging the VirtualHost options into 1 block and using ServerAlias for the www alias; <VirtualHost *:80> ServerAdmin Raul DocumentRoot "/opt/bitnami/apps/mywebsite/htdocs" ServerName mywebsite.es ServerAlias www.mywebsite.es </VirtualHost> Remember to restart Apache again after changing. I hope this works - but just let it know. 2
raulyjo Posted December 20, 2016 Author Posted December 20, 2016 It works!!!!!! Thank you really much
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now