Is it possible to save a static html file with built in http headers ? So that putting it on any server will work including the http headers?
If so how?
Is it possible to save a static html file with built in http headers ? So that putting it on any server will work including the http headers?
If so how?
I have configured Apache to send back a 200 response without serving any file with this configuration line
Redirect 200 /hello
Can I do this with Nginx? I don't want to serve a file, I just want the server to respond with a 200 (I'm just logging the request).
I know I can add an index file and achieve the same thing, but doing it in the config means there's one less thing that can go wrong.
I've tried emailing a normal web page using something like:
mail -s "Test Email" [email protected] < webpage.htm
However, the recipient sees the raw HTML tags in the email and none of my careful formatting. Am using RedHat Linux.
I've got an Apache web server
that delivers static HTML pages. For some reason I can't change the files themselves, but I still want to inject some HTML into every page that is being served.
Is this possible with mod_proxy
? If not, could anyone recommend a software
that provides such a feature?
EDIT:
I have to insert some kind of banner ad (e.g. a javascript
) and a tracking pixel.
This might not seem as a development question, but in essence it is. Let me explain how. Our main development focus is dynamic content pages. Some of our customers have asked us to allow them space in our servers (which they pay) for their old static content. We use to accomplish this by giving the customer a ftp account to a different domain. (e.g. Customer domain is customer.com but they were accessing their static content through otherdomain.com/customerstatic).
Now we want to increase the security giving customers sftp accounts in their linux servers. I am using openssh/sftp-server in their shell environment so they are unable to log in or execute commands.
The problem is that by nature many file system files are by default (drwxr-xr-x) which means that any user will be able to read the content of the directory and possibly some files. I don't think that changing the whole file system to -rwxr-x--x is a wise move since I don't know how many system files will need that read permission.
Have someone confronted this issue in the past. If you have, could you enlighten the way?
Thanks