Questions tagged [html]
The html tag has no usage guidance.
216
questions
261
votes
6
answers
313k
views
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 ...
23
votes
10
answers
51k
views
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 ...
16
votes
6
answers
17k
views
Reasonable automatic HTML to PDF conversion (in UNIX/Linux environment) [closed]
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 ...
15
votes
6
answers
15k
views
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" &...
15
votes
3
answers
5k
views
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: ...
12
votes
4
answers
6k
views
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 ...
11
votes
6
answers
104k
views
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" [email protected] < webpage.htm
However, the recipient sees the raw HTML tags in the email and none of my careful ...
7
votes
4
answers
3k
views
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?
6
votes
11
answers
15k
views
How to convert a really big HTML file to PDF in Windows [closed]
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 ...
6
votes
3
answers
2k
views
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 ...
6
votes
2
answers
22k
views
How do I copy/paste to a VM console window in the VMware ESXi HTML interface?
I have an Ubuntu VM in an instance of VMware ESXi 6.7.0. I am using Chrome to access the VM console in the HTML interface of VMware ESXi. (I do not have SSH access to the VM.)
I would like to copy/...
5
votes
1
answer
3k
views
How to "screenshot" a terminal with ANSI colors and export to HTML? [closed]
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 ...
5
votes
2
answers
6k
views
Anyone recommend a program to print multiple HTML files at once for end users? [closed]
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 ...
5
votes
2
answers
17k
views
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 ...
4
votes
15
answers
4k
views
smallest webserver [closed]
Can anyone recommend a tiny tiny webserver that will run on windows. Extra points if it runs as an NT service. I am looking for something purely to server html. At most it will probably server 20 ...
4
votes
5
answers
258
views
What statistics app should I use for my website?
I have my own server (with root access).
I need statistics of users who visit my website etc etc...
I have looked at an app called Webalyzer...
Is this a good choice?
I run apache2 on a Ubuntu 9 ...
4
votes
5
answers
321
views
What excuses are IT managers/directors using to defer upgrading from Internet Explorer 6?
Why are so many medium to large enterprises still using Internet Explorer 6? Is there some secret ultra valuable feature or cost reason that has extended its life? What are the most common excuses you ...
4
votes
4
answers
4k
views
How can I render html at high resolution? [closed]
I want to create high-quality prints of a website, for a publication.
Screenshots can get very gritty when printed out, for no good reason. Embedded bitmap images can't be improved of course, but ...
4
votes
2
answers
2k
views
How do I properly escape and interpolate variables in Bash?
I'm trying to write a one-liner to convert html entities present in some files (all html with UTF-8 encoding)
I've tried
recode HTML_4.0 file.htm
but that also converts non-ASCII characters (it ...
4
votes
1
answer
3k
views
code injection, some sort of hack?
something seems to have either hacked a webserver, or we have some sort of semi-malicious code running that keeps injecting code into our website. it seems to affect just a couple of coldfusion and ...
4
votes
2
answers
2k
views
Hyperlinking to a site with port 443
I am having trouble finding a way to hyperlink to https://secure.mysite.net:443
I tried: <a href="https://secure.mysite.net:443/">HTTPS SSL</a>
However it simply takes me to https://...
4
votes
3
answers
2k
views
Scan HTML for unused assets in folders
I have an aging website I'm managing and I'd like to remove all unused external files (.css, .jpg, .js, etc.) that are currently in various folders all over the site.
Is there a tool out there that ...
4
votes
1
answer
1k
views
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 ...
4
votes
1
answer
1k
views
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 ...
3
votes
1
answer
2k
views
Cannot use relative links in my tomcat development environment
I'm developing a web-application with tomcat. In the dev env, the application's root address is localhost:8080/myapp/. In production, the root address is www.myapp.com/.
When I use a relative link in ...
3
votes
1
answer
7k
views
In IIS, Is it possible to execute a .HTML page as aspx?
Question:
We have a 3rd party portal that makes a copy of a html/aspx page, and puts it into a temporary folder, CHANGING THE EXTENSION to .HTML in all cases (also it the root page was .aspx).
...
3
votes
1
answer
2k
views
How to prevent other websites from loading resources from our webserver?
I have some icons and images on my server. How can I prevent that other websites can use them? Let's assume the website www.evil.com is loading our images on their site e.g.
<img src="www.oursite....
3
votes
1
answer
519
views
Large file download from self hosted website
Sorry if the question is simple, I am new to web development and self-hosted servers.
We have a self hosted website, which is supposed to have a button to download a large zip file (1 GB). For this, ...
3
votes
1
answer
3k
views
Why is my .htaccess and .htpasswd not working?
I have .htaccess and .htpasswd files in the directory that has png files that I want to protect.
.htaccess
AuthType Basic
AuthName "Co to za nielegalne grzebanie w plikach, juz dzwonie na ...
3
votes
2
answers
2k
views
Apache2 slow serving static while healthy
My Apache status looks like;
201 requests/sec - 98.8 kB/second - 504 B/request
85 requests currently being processed, 345 idle workers
...
2
votes
3
answers
12k
views
How to use SSL certificate on my web-site?
I'm new to SSL, but my php web-site will contain secret information from users. I hear that ssl (https) can establish a solid security level. But, how to use it? How to implement it to my html files?
...
2
votes
3
answers
8k
views
Preventing access to files if a user types the full url on the address bar
i have a website, some folders on the websites contains images and files like .pdf , .doc and .docx .
the user can easly just type the address in the url to get the file or display the photo
http://...
2
votes
2
answers
7k
views
Launch HTML file in Chrome with parameters
I want to create a shortcut that launches chrome with an HTML file in the same directory as the shortcut. I also need it to launch chrome with the following parameters --new-window --disable-web-...
2
votes
2
answers
835
views
Force a HTML form to submit over IPv4
I have a web page that has a simple HTML form in it, like so:
<form method="POST" action="/something">
<input type="text" name="something">
<input type="submit" value="Send">
&...
2
votes
4
answers
2k
views
Building a High Performance Static Website
I'm looking to build a High Performance website. It has thousands of static HTML pages, that are specifically rendered depending on a form submit. I have a ruby script that generates these static HTML ...
2
votes
4
answers
17k
views
How to stop Exchange 2007 from automatically converting plain text emails to HTML?
this.. nice.. exchange server converts my text/plain messages from text to html and messes them up, just because it detects html somewhere in the body.
how can i stop him from doing so?
edit: i am ...
2
votes
1
answer
2k
views
nginx SSI: how to echo html?
As a sanity test, at the head of my HTML page, I'm trying to do a very simple SSI echo to indicate to the browser that SSI is working:
index.html:
<script>var ssi_enabled = false</script>...
2
votes
2
answers
6k
views
Page won't load on IE9 unless developer tools are started first [closed]
One of my pages (with very extensive javascript) won't load on IE9.
It loads ok in Mozilla, Chrome, Safari and Opera.
If IE9 Developer tools are running it loads fine.
If I load IE9, load the ...
2
votes
2
answers
258
views
How do I selectively redirect my website?
I have a domain alias that i want to forward to a specific directory on my main site. How do I get it so that only people visiting the alias "fakesite.com" to be redirected to "mainsite.com/fake" ...
2
votes
3
answers
315
views
Is It Possible To Self-Teach PHP, Wordpress, CentOS (Linux), Apache, Nginx etc?
consider me a total noob, who uses a Windows PC and has never touched Linux. But I want to administer, manage and take responsibility of my server, at least at some point, if not now.
But since I am ...
2
votes
1
answer
646
views
How to edit files from localhost via lynx?
I want to optimize a site for viewing with lynx.
If I view any HTML file from outside of the DocumentRoot, I am able to edit and save these files inside lynx with keystroke e, which invokes vim.
...
2
votes
4
answers
397
views
Change the prefix of a website? (IE: www.example.com/bob_11 -> bob_11.example.com)
Some websites have variable prefixes. For example: www.example.com/bob_11 is presented as bob_11.example.com.
How do I do that? I assume its a sub-directory, but can't find anything explaining how to ...
2
votes
2
answers
80
views
password protecting a website
I am looking at quickly password protecting a website, one folder on a server. I have played around with .htaccess and just realised that it's probably not working because it's likely it's sat on a ...
2
votes
1
answer
497
views
How to wrap all html responses in a html layout using apache 2.2?
I have multiple web-apps running on a server using different technologies.
java
php (wordpress)
python (trac)
They are all front-ended with Apache 2.2. My question is does anyone know a good way to ...
2
votes
2
answers
88
views
Find links that return 404s
I'm building a fairly large html site which relies on a lot of links between sections that need to be correct.
Is there any way I can check each link on a page and make sure that it doesn't return a ...
2
votes
1
answer
2k
views
Google Cloud Services Content Security Policy Issues
I have a static web site hosted in a bucket that I serve up via the Google Platform.
This site has been running with no problems for about 6 months but over the last month I have had intermittent ...
2
votes
1
answer
2k
views
Why HTACCESS RewriteCond %{HTTP_COOKIE} only for php and not working for html?
I was trying to redirect all direct access in my subfolder using this code
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !user_cookie=[^;]
RewriteRule .* http://webhost.org/ [R=301,L]
I realise it ...
2
votes
2
answers
2k
views
After loading a certain number of javascript/css files, the files are taking too long to load
I have a problem where on page load (after a certain number of .js or .css files) the files are taking way too long to load. At first I thought that the issue must be inside the .js files, but later I ...
2
votes
2
answers
5k
views
Apache shows .html, .php files as .txt
I have files in public_html (index.html). When I go to the main page it gives me "Apache Test Page". When I try to add link to them manually (domain_name/index.html or index2.php) it gives me only ...
2
votes
1
answer
3k
views
Adding a signature with an image/logo and *not* creating an attachment icon
My company uses Outlook 2003/2007 on Exchange, and they want to standardize on a signature format.
What is the best way to add an image to a signature with these features (in order of priority):
Not ...