I know which param the first one belongs to, but I am uncertain about the others. My experiments in vhost (my-vhosts.conf) have been unsuccessful. Let me show my excerpt. (Note: httpd-ssl.conf has been disabled, but my-vhosts.conf is loaded, and works for my non-SSL sites. I put all active params from httpd-ssl.conf into my-vhosts)
The 2 ampps folders stem from the first install. So thats in the folder structure.
So I went ahead and removed my-vhosts file, and had the control panel write the vhosts file, as you suggested. But now I have the issue, that when I call my web site I end in the root folder /www from where all web sites descend.
#1 - landing in root
When the ampps control panel writes the httpd-vhosts.conf file the entry for <VirtualHost 127.0.0.1:80> and <VirtualHost 127.0.0.1:443> respectively. When you come in from outside with 192.168.1.x (which is port forwarded from an external maskable IP address) the section is ignored and you land in the root.
When you put <VirtualHost *:80> and <VirtualHost *:443> instead, the section is found and the request lands on the correct web page.
#2 - disable the root
To disable the root directory, you must take away the <VirtualHost 127.0.0.1:80><Directory "C:\AMPPS\Ampps/www"> section. The control panel does not allow you to remove the PRIMARY domain, so you have to do it in the vhosts file manually.
#3 - control panel / domain manager needs more options
Depending on your setup, you may have multiple IP addresses, one for each domain, one IP with multiple host headers, etc. You should provide a field in which you can specify the IP address or * to have better control.
#4 - editing vhosts file manually
at this point, its not possible to get the settings correct without editing the vhosts file by hand.
The certificate I got from Network Solutions works, the only thing that does not show is who "signed the certificate". There must be an additional SSL cert type to show exactly this information. I'll figure it out.
hi how long will the dummy certificate last do i have to replace it lets say for 1 year or 2 years because i'm planning to use it on my office thank you. I tried creating new openssl certificate and replaced the dummy certificate but apache server won't start, can you please help me. Thank you