Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a website domain.com and a mobile version on m.domain.com. The regular site is in /home/www/html/domain.com and the mobile version is in /home/www/html/domain.com/m.
Is something like this in /etc/httpd/conf.d/domain.com.conf correct, or can I do it differently / better?
Is this how I do it or not. I am used to cPanel and I've never really worked on things like this.
httpd -t returns syntax ok but I have some connectivity problems with this website (it does not work / load basically) and it looks like it could be related to this.
And this is kind of odd, because if I go to domain.com it does not work at all, but when I enter domain.com/phpinfo.php it loads normally / right away.
Edit:
I have 6 different websites on the server and 6 separate config files like this in /etc/httpd/conf.d
The websites dont seem to load very good, and this could be related to this. Should I put it all in one file maybe and write it out differently all together, or what would be the best way to go?
Last edited by AdultFoundry; 06-13-2016 at 04:52 AM.
I get a strange error, in red, when I enter systemtcl stauts http. It looks like mod_evasive blacklist my own IP (the server IP, the one on which the websites are hosted) because of a possible DoS attack.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.