Tag Info

Hot answers tagged

4

I didn't know the problem was SELinux but I discovered that was the problem because I turned it off with setenforce 0 and then it worked. This is how it looked when I listed the files with ls -alZ -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 file1.pdf -rwxr-xr-x. apache apache unconfined_u:object_r:user_home_t:s0 file2.pdf so ...


3

No, a file ending .html is by default just treated as static HTML.


3

I don't see any advantage to hard links. With hardlinks, you can move the original file (rename it) as needed without needing to recreate the link. That strikes me as a bug rather than a feature. If you want to disable a site (for example because you've just noticed that it has a major security hole), with symbolic links, you can just rename the ...


1

You're right, sudo to a user with read but not write permission will run a command in a way that only has write access to files you give it permission for. sudo -u some_user cmdname Running arbitrary user-uploaded programs requires extreme security precautions. Local-root exploits are unfortunately not uncommon in Linux. Letting users run programs they ...


1

Obviously RewriteRule matching anything causes the loop. Disable it. If you want to simply redirect http://haustor.org/ to http://cpt.haustor.org/, declare <VirtualHost> for each virtual host. <VirtualHost *:8081> ServerName haustor.org Redirect / http://cpt.haustor.org/ </VirtualHost> <VirtualHost *:8081> ServerName ...


1

It's a way to organise your config into logical files. It's generally easier to find ssl.conf instead of parsing through 1000 lines of httpd.conf for the ssl section. On centos, conf/httpd.conf will include conf.d/*.conf. This is probably loaded in same order the shell globs *.conf which basically amounts to alphabetical order (but I've never checked the ...


1

I am trying to write a python script which shows me the services which are running on my server. Don't do that. That's exactly what a process manager like upstart or systemd is for. Using systemd, a simple unit file for mongo might look something like: [Unit] Description=High-performance, schema-free document-oriented database After=syslog.target ...


1

The main reason a service is masked is to prevent accidental starting or enabling of the service. For example firewalld can be masked with systemctl mask firewalld When starting the firewalld service, you may get the error message Failed to issue method call: Unit firewalld.service is masked. To resolve this, unmask the firewall with systemctl unmask ...


1

The main issue is that you cannot turn off Dav for a subfolder. So that's why most people enable Dav for a sublocation like /svn. On the other hand, with some trickery, it can work if you use a rewrite rule and redirect to another domain which has the xsl files. You will need to set the Access-Control-Allow-Origin header on that other domain to say the ...



Only top voted, non community-wiki answers of a minimum length are eligible