Web's picture

Hello everyone. I deployed Ejabberd from the Amazon Marketplace to my EC2 and it's working wonderfully. The only thing I don't need from the package is that it runs Speeqe on my top level domain. I checked /etc/apache2 to see if I could manage to obliterate speeqe but I wasn't able to. My idea is to host a simple html landing for the project I'm working on by putting it in /var/www/index.html, which currently hosts a sample welcome page that came with the package.

I'll appreciate if someone could point me in the right direction, because I'm in the dark here.

Thank you very much!

Forum: 
Jeremy Davis's picture

Disable the Speeqe Apache 'site' like this:
a2dissite speeqeweb

Then create a new site file in /etc/apache2/sites-available/

Call it whatever you like; and inside it put something like this:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/
</VirtualHost>

<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/cert.pem
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/
</VirtualHost>

ScriptAlias /cgi-bin/ /var/www/cgi-bin/

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        Order allow,deny
        allow from all
</Directory>
Once you have that saved (let's pretend that you called it /etc/apache2/sites-available/new-site.conf) then enable it:
a2ensite new-site

Then finally restart apache to apply all your config changes:

service apache2 restart

Your /var/www/index.html should now be showing! :)

Add new comment