You’re getting redirected to the UI page mainly due to the following reasons:
-
Have you reloaded apache? “service apache2 reload”.
-
Have you cleared your browser’s cache?
-
I don’t think this is your case but I’ll just put it in the list. In your new config you defined host mydomain.net but you browse using ip instead of mydomain.net thus apache couldn’t identity the vhost and use the default. Or the DocumentRoot still pointing to the default WD location.
Actually Apache is great and fast. But due to WD’s config of using mpm_prefork and php5_mod, the server needs lots of resources to hold fair amount of traffic which our nas is lacking especially the 256mb ram mainly. I modded and switched to threaded mpm_event + mod_fastcgi + php5-fpm, removed all the unnecessary modules, now apache is smooth and fast.
Below is one of my configs in the conf.d path. You can ignore the mod_fastcgi part unless you already modded them. I modded Apache2 to run Perl’s FCGI and Php5-fpm:
<IfModule mod_fastcgi.c>
AddType application/x-httpd-fastphp5 .php
AddType application/x-httpd-fcgi .fcgi
Action application/x-httpd-fastphp5 /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -idle-timeout 300 -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
<VirtualHost *:80>
include /etc/apache2/sites-enabled/*.conf
</VirtualHost>
<Directory />
Options +ExecCGI +FollowSymLinks +MultiViews -Indexes
AllowOverride All
Require all granted
AddHandler cgi-script .cgi .pl
DirectoryIndex index.fcgi index.cgi index.pl index.php index.htm index.html default.htm
</Directory>
<VirtualHost *:80>
DocumentRoot /DataVolume/wordpress
ServerName nazar.bagus.org
ServerAlias nazar.bagus.org
include /home/Nazar/.config/apache2-rewrite.conf
</VirtualHost>