Second Hostname Not Loading on Apache Virtual Host
-
I have 3 files in my /etc/apache2/sites-enabled folder. 000-default.conf, builtbyart.com.conf, and thanksaj.com.conf. The default one has to be there. However, the actual virtual host is brought online when you run:
a2ensite builtbyart.com
a2ensite thanskaj.comThe site name must correspond to a .conf. So if I'm bringing thanksaj.com online, the file has to be thanksaj.com.conf.
-
What I can't figure out is why ThanksAJ.com DOES work but BuiltByArt.com DOES NOT. They are configured exactly the same.
-
Well I cannot help you as my webserver is a simple standard CentOS box with a clean apache install. All the settings are in /etc/httpd/conf/httpd.conf
-
@JaredBusch said:
Well I cannot help you as my webserver is a simple standard CentOS box with a clean apache install. All the settings are in /etc/httpd/conf/httpd.conf
Yeah, the RPM-based system vs a Debian-based system.
-
@ajstringham does not explain why apache config files are different. one would think that would work the same because it is apache not the OS.
-
I have even tried redoing Wordpress.
EDIT: I just checked and had forgotten to redo Wordpress after deleting the old files...oops. Let's try that again..
-
@JaredBusch said:
@ajstringham does not explain why apache config files are different. one would think that would work the same because it is apache not the OS.
True.
-
@ajstringham said:
What I can't figure out is why ThanksAJ.com DOES work but BuiltByArt.com DOES NOT. They are configured exactly the same.
One is being picked up as the default fall through and the other is not.
-
Hmm....
-
I checked the 000-default.conf file. It's all generic. Nothing set in there. So that's not it.
-
Ubuntu's non-standard Apache config files don't make this any easier either.
-
@scottalanmiller said:
Ubuntu's non-standard Apache config files don't make this any easier either.
I need this up and going by tomorrow! Any help is greatly appreciated!
-
@ajstringham I cannot help sorry, I just turned up 4 websites on my CentOS7 server. all working perfectly.
-
@JaredBusch said:
@ajstringham I cannot help sorry, I just turned up 4 websites on my CentOS7 server. all working perfectly.
I figured out the issue. I had everything set up correctly. Turns out my NoIP settings were wrong. Once I fixed those (that is what actually fixed it), it all started working! @scottalanmiller helped out tremendously! Thanks all!