Questions tagged [html]
207 questions
226
votes
6 answers
How to reply with 200 from Nginx, without serving a file?
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…
Theo
- 2,505
- 2
- 18
- 10
24
votes
10 answers
How to inject HTML code into every delivered HTML page?
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…
Node
- 1,644
- 1
- 13
- 15
16
votes
6 answers
Reasonable automatic HTML to PDF conversion (in UNIX/Linux environment)
Is there a way to generate PDF documents from HTML files automatically in Linux where the PDF offers some kind of reasonable level of resemblance to the input file?
A command-line tool - as opposed to an interactive GUI of some kind - is key.
I have…
Alex Balashov
- 907
- 2
- 9
- 16
15
votes
3 answers
Which is faster at serving up PHP pages, Apache or NGINX
I've read quite a bit on the major benefits to running NGINX over Apache for serving static files. However, I have never seen an article talking about Apache vs NGINX for serving PHP pages.
Question: which is faster at serving up PHP pages, Apache…
TeddyR
15
votes
6 answers
How can I easily convert HTML special entities from a standard input stream in Linux?
CentOS
Is there an easy way to convert HTML special entities from a data stream? I'm passing data to a bash script and sometimes that data includes special entities. For example:
"test" & test $test ! test @ # $ % ^ & *
I'm not sure why…
Mike B
- 11,570
- 42
- 106
- 165
12
votes
4 answers
Securing file system for secure SFTP server
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…
Geo
- 3,061
- 11
- 41
- 52
11
votes
6 answers
How do I send mail from linux command line so it appears as HTML to recipient?
I've tried emailing a normal web page using something like:
mail -s "Test Email" blah@blah.com < webpage.htm
However, the recipient sees the raw HTML tags in the email and none of my careful formatting. Am using RedHat Linux.
Umber Ferrule
- 481
- 2
- 6
- 12
7
votes
11 answers
How to convert a really big HTML file to PDF in Windows
We have a few really large HTML files (60-100 MB) that we cannot convert to PDF with any reliability.
Adobe Acrobat 9 crashes - hits the 2GB limit for applications.
Open Office converts, but removes some of the anchors ().
ActivePDF webgrabber…
PeterStrange
- 101
- 1
- 1
- 3
6
votes
4 answers
Static file with HTTP headers?
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?
Niro
- 1,371
- 3
- 17
- 35
6
votes
3 answers
A simple webserver that serves HTML files
I am having a bunch of HTML files getting generated everytime when I run a periodic task in my server. All I want to do is to display the index.html through a webserver. All the links in the index file are linked within that directory. How to do…
bragboy
- 327
- 1
- 2
- 9
5
votes
2 answers
Anyone recommend a program to print multiple HTML files at once for end users?
I have some clients with multiple html files in folders that are occasionally updated & printed. They would like to be able to print them all at once without having to open each one.
I typically do this with a quick command for myself, but I'm…
Keith Bentrup
- 699
- 3
- 8
- 19
5
votes
2 answers
Modify HTML Content with Squid
We have set up our network as per this tutorial. Basically, we have a squid proxy that inverts images for pages that clients request.
We're trying to modify the script so that we can edit the contents of the webpage before the webpage is sent to the…
user38400
- 155
- 1
- 2
- 4
4
votes
1 answer
Absolute/relative file paths affecting server load?
I was told by my hosting provider's technical people that I should be using relative file paths (/home/index.php) instead of absolute paths (http://www.example.com/index.php) to "reduce server load".
His words:
[logs showing that my domain name is…
Acceptable
4
votes
1 answer
How to "screenshot" a terminal with ANSI colors and export to HTML?
I want to do a full screen copy of some terminal output, with ANSI colors, and generate HTML so I can post to a blog or wiki.
My real world example: I want to document top with all of its ANSI color goodness. (I'd rather not do a bitmap screenshot.…
David J.
- 199
- 1
- 6
4
votes
1 answer
Modify MDT wizard to automate computer naming
Situation:
I am imaging new systems using MDT Lite-Touch. I am trying to
customize the wizard to automate the naming of new systems so that
they include a prefix "AG-", a department code which is selected from
a drop-down box in the wizard…
Jeramy
- 193
- 1
- 7