Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

apache virtualhost not redirecting to smf

Started by dsanchez, August 27, 2022, 06:56:38 PM

Previous topic - Next topic


Installed SMF forums on my Ubuntu server hosted on DigitalOcean in directory /var/www/html/smf

Added the below code in /etc/apache2/apache2.conf expecting that my domain would correctly read the above folder...

<br>&lt;VirtualHost *:80&gt;&nbsp; <br>ServerAdmin webmaster@localhost&nbsp; <br>DocumentRoot /var/www/html<br>&lt;/VirtualHost&gt;<br><br>&lt;VirtualHost *:80&gt;&nbsp; &nbsp; <br>DocumentRoot /var/www/html/smf&nbsp; &nbsp; <br>ServerName; &nbsp; <br>ServerAlias *<br>&lt;/VirtualHost&gt;<br>

as this did not work, I went and added the file to the directory /etc/apache2/sites-available

however, when I follow these instructions and run sudo apache2ctl configtest I get:

AH00112: Warning: DocumentRoot [/etc/apache2/var/www/html] does not existAH00558: apache2: Could not reliably determine the server&#39;s fully qualified domain name, using Set the &#39;ServerName&#39; directive globally to suppress this messageSyntax OK

Why am I getting a warning of a document root on etc/apache2? the var directory is at the same level as etc/

When trying to open the site, it shows HTTP ERROR 500


me to im blocked in same thinks for my forum about [nonactive]

 when I follow these instructions [nonactive]

I have same problem ...


This is old topic but would be nice if you share your data with

Also, check do you see your site config under