Softaculous


Topic : Addon domain error: "Entered domain is invalid"


Posted By: artocignus on December 15, 2017, 10:57 am
I'm using Ampps for local development on a Windows 10 machine. In order to resolve the domain names to my local server, I would normally edit the "extra/httpd-vhosts.conf" file. However, with Ampps, there's a comment saying "#DO NOT EDIT, CREATED BY AMPPS". So, following forum advice, I've tried creating the addon domain in the Ampps manager at localhost/ampps. The details I enter are:

Domain: loc.sitename_v1.com
Is domain addon or parked: ticked
Domain path: D:/web_projects/sitename_v1/public
Add and SSL entry: unticked (although I would like to try a version with SSL)
Add entry to hosts file: unticked (there's a warning message about not having permissions, so I add the hosts entry manually)

My manual entry in the hosts file is:
127.0.0.1      loc.sitename_v1.com
::1                loc.sitename_v1.com

All the necessary folders, log file and index.php file exist at the indicated path on my D: drive, and Apache restarts with no problem

When I click on add domain, I get an error message saying "The entered domain is invalid"

With the previous version of Ampps, I got the same error, but I just took matters into my own hands and entered the following in the "extra/httpd-vhosts.conf" file:

<VirtualHost *:80>
    DocumentRoot D:/web_projects/sitename_v1/public
    ServerName loc.as_v1.com
    ErrorLog D:/web_projects/sitename_v1/logs/sitename_v1-error.log
</VirtualHost>

That did the trick in my previous version of Ampps, even though I wasn't supposed to do this manually, and I developed quite happily for over a year. However, I now have the latest version of Ampps installed, and having inserted all the entries manually, I now get a 400 Bad request error when I type the local addon domain into my browser address bar. I even tried copying over the "httpd.conf" and "extra/httpd-vhosts.conf" files from my previous installation, but then Apache wouldn't start at all, so obviously some config settings are different in the latest version.

I'm not sure what else to try, so any help would be very welcome!

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.