You appear ( from the small section of config you posted ) commened out the ServerAlias www.jetbbs.com in teh relevant part of the config - hence it will go to the default “franklin” one.
Yes, that was the problem. With cPanel, you can’t just edit Apache’s configuration file. I don’t know how much you know about cPanel or not. But they use these templates that build the Apache configuration file. I wanted to disable the ServerAliases for the subdomains because there shouldn’t be a www.hostname.domain.com and a www.subdomain.domain.com. But the way the templates are, it just goes through a loop and adds the same stuff for every domain / subdomain and then it does it again, for SSL stuff. I added an if statement to the template, to check if ServerName == jetbbs.com and if it does, then I enable the ServerAlias for jetbbs.com. I did this for the ssl_vhosts as well. This fixed the problem.
But why did curl on the server not show the franklin-test message? How come when I used curl to go to http://www.jetbbs.com/.well-known/acme-challenge/test I see the 301 redirect? I went in on my Linux box and tried the command, it ended up showing the same results as what you had. I just want to know why on the server, I was getting different results than I got from running the curl command somewhere’s that wasn’t on the server. Any ideas?
The problem is now fixed, I couldn’t have done it without you serverco. I would have never realized www.jetbbs.com had a different DocumentRoot, because of the way curl was working on the server. THANK YOU!!!
Glad to hear it’s all fixed
As to exactly why the on server was giving a different response I can’t be certain without debugging. Old age and experience tells me it’s usually best to check from a source outside your local network though to eliminate such errors with curl it shouldn’t have been caching or anything, the different routing must have caused some strange issue.
I was thinking something similar serverco. I figured it wasn’t a cache issue with curl (although it could have been with Chrome, despite the fact I tried using incognito mode). I’ve had similar issues with Chrome before and had to actually clear the cache manually in order to see the real page.
It’s too bad I get a different response on the server than on my local Linux box. I’ll have to make sure to test everything from the outside now, which isn’t a bad idea. Usually, I hold off on testing from the outside world until I’m finished doing what I’m doing.
Thanks for the help serverco. Like I said, I don’t think I would have figured this out without your help, because of the curl issue. You really helped me out and I’m glad you decided to test the various test files yourself, instead of just taking my word for it. One of those, It worked for me! kinda issues. I’m probably going to continue to look for why I got different results on the remote server though. I’d like to figure out what’s going on there…
Thanks!
You;re welcome good luck chasing that one down - and let me know what it i when you find it, I’d be interested.
I agree, chrome etc can cache - which is why I tend to use curl for testing. I’ve also usually got an SSH tunnel open to somewhere remote. so it’s not really a problem to test from a remote location.
I wanted to say I’m not going to be looking into curl too much, because I don’t think curl is the issue here. I also tried using the terminal based web browser, lynx, which also showed the same results as curl. So, I’m thinking it’s something maybe with Apache? Maybe it handles local traffic differently than remote traffic? That’s all I can really think of. Not sure where else I would start my search. But for certain, it wasn’t just curl, it seemed to be all the programs on my remote server having this issue.
So what exactly are those tunnels? For the SSH tunnel, does that mean you got it setup in such away where it’s like you remote server is actually a local one? I hear a lot about tunnels but I don’t really understand them very well. Let’s say I have X-Windows installed on my remote server (Franklin), if I setup an SSH server, from my local Linux box (Eugene), will I be able to start X-Windows on Franklin, securely, and login and have all the information encrypted, so spying eyes couldn’t see the data I send?
Thanks!
There are various different ways you can run an SSH Tunnel - in short though, yes - you can securely login and have all the information encrypted. You can either use X-windows, or you can set up a simple VPN using SSH. For simple things such as curl, you can just run them directly from teh remote server of course.
Removed
202020202020
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.