Fixed a bug with auto-generating the Apache configuration, follow $server

Also made $server mandatory