Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've been reading about disabling the logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk.
I've tried changing http.conf and directing stuff to /dev/null, but none of it worked, as most of it was the Error logging.
Any idea anyone?
Thanks
Just comment the areas where logging was set.
On,
httpd.conf
virtual hosts configurations (virtual.conf, domain.conf etc)
For something like
CustomLog logs/access_log common
ErrorLog logs/error_log
Just do,
#CustomLog logs/access_log common
#ErrorLog logs/error_log
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
When I add this line
X-FRAME ALLOW-FROM https://www.example.com
in the config files of apache2.conf in my ubuntu 14.04 server. It fails to start my apache. Can any one tell the exact line that can be added to allow X-FRAME from only one url.
Maybe you mean:
Header set X-FRAME-OPTIONS "ALLOW-FROM https://www.example.com"
But honestly you're so far off from correct syntax it's really unclear what your intent was. You'll need mod_headers loaded.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've recently modified the /var/log/secure log to test a remote log aggregation tool and that, of course, prevented syslog from further writing to that log.
Question: How do i restart syslog on this CloudLinux box I have?
I'm used to syslog being under /etc/init.d/syslog for other Linux distros and just a simple restart command does it however on CloudLinux syslog is under /etc/logrotate/syslog and, as far as I could read, it's part of a cron job now or something like that.
On CloudLinux 6 (as well as CentOS6) it is /etc/init.d/rsyslog
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Is it possible to add scripts (like curl) to /etc/hosts? I am trying to set up a subdomain over ddns, and it's really hard to update my /etc//hosts file on the fly when my IP address updates without my knowledge. Thanks in advance.
No it's not. However, you will probably have some scripts that can be triggered when you get an IP address or something similar and those can be used to rewrite your /etc/hosts.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I found these following lines in my .htaccess file.. I've replaced my website name with example.com. I didn't add this to my .htaccess file...
AuthName "example.com"
AuthUserFile "/home3/examplec1/.htpasswds/public_html/example.com/passwd"
What is this and why was it added to my .htaccess file? Is it possible someone has downloaded the public_html file?
If i did get hacked, how do i prevent from getting hacked again?
I did try to protect a folder(can't remember which one) previously in cpanel, would this alter my .htaccess?
This probably was added by your hosting provider or by someone who also has access to your environment. Adding a protection cannot seriously harm you. Removing or changing a protection would be worse.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a server which hosts mywebsite.com
If I try to send mail to info#mywebsite.com, the MTA is trying to send it to a local host (the mail is managed on a different server). How can I fix this?!
Its a linux server running qmail
Any more info needed please ask
Thanks!
Figured it out, the system has Plesk on it, needed to disable the mail service on the domain to stop it from sending to itself