Jump to content

Problems with my domain


raulyjo
 Share

Recommended Posts

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

  577Sin_t_tulo.jpg

 

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

Link to comment
Share on other sites

  • 2 weeks later...

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.

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...