Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [html]

The tag has no usage guidance.

23
votes
10answers
41k 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
6answers
16k 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
4answers
4k views

Apache or NGINX for PHP?

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
4answers
5k 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 ...
10
votes
6answers
81k 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" blah@blah.com < webpage.htm However, the recipient sees the raw HTML tags in the email and none of my careful ...
7
votes
5answers
9k 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" &...
7
votes
11answers
10k 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 ...
5
votes
3answers
1k 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 ...
5
votes
4answers
1k 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?
5
votes
2answers
14k 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
5answers
211 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
5answers
313 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
4answers
2k 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
1answer
2k 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 ...
4
votes
1answer
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
2answers
4k 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 ...
4
votes
3answers
1k 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
1answer
804 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 load". ...
4
votes
1answer
940 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
15answers
842 views

smallest webserver

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 ...
3
votes
1answer
1k 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
1answer
6k 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
2answers
606 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 ...
3
votes
2answers
689 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://...
2
votes
4answers
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
2answers
2k 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
2answers
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
2answers
239 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
3answers
305 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
4answers
151 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
2answers
61 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
2answers
84 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
2answers
1k 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
2answers
4k 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
1answer
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 ...
2
votes
2answers
1k 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
2answers
306 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 ...
1
vote
4answers
276 views

How to know if I have/need Linux server or Windows server?

I am creating a classifieds website with PHP and MYSQL. How would I know if I need windows server or Linux? I am about to pick a host. Any other suggestions are also appreciated... Thanks
1
vote
3answers
10k 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? ...
1
vote
3answers
6k 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://...
1
vote
2answers
2k views

Do large corporations block jQuery content on web pages? [closed]

We are currently redesigning our website. The company we've hired to do the redesign is advocating the use of jQuery to render the pages dynamically. Our SEO specialist is under the impression that ...
1
vote
3answers
716 views

Should I ban spiders?

A rails template script that I've been looking at automatically adds User-Agent: and Dissalow: in robots.txt thereby banning all spiders from the site What are the benefits of banning spiders and why ...
1
vote
6answers
612 views

How much traffic per month would my site need? [closed]

HOW MANY GB OF TRAFFIC IS REQUIRED PER MONTH? Any way to calculate this? Webhosting companies have a limit when ordering, so I need to know... A classifieds website using PHP and MYSQL. MYSQL has ...
1
vote
4answers
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 ...
1
vote
1answer
1k views

How do I access a site by IP on a CentOS server [closed]

I have a CentOS 6.3 server, running Apache and have DirectAdmin installed. I have created what will be a new domain, but I do not have a domain name yet. For now I have created, lets say, mydomain....
1
vote
2answers
389 views

Regex works everywhere ( tried regex101 and regstorm.net) except Powershell

I have tried various different combos and already checked other similar posts, but can't find my answer. I have a .config file and I need to exclude the comments from the file when I do my search, ...
1
vote
2answers
560 views

How to deny access to a certain HTML file

I know how to deny access to all websites but I want to know how to deny access to an IP to the website test.html using NGINX
1
vote
1answer
165 views

File URI in IE has stopped responding

In our office we have a web server that has a very basic set of webpages. Recently the File URI has just stopped responding for many people. When you click on the link, nothing happens, IE does not ...
1
vote
1answer
229 views

Apache Send .java files as text instead of download

How do I configure my apache instance to simply load *.java files in browser instead of sending it to me as a download?
1
vote
2answers
498 views

Use Varnish to inject content into pages from specific domains

I am experimenting with using Varnish as a proxy to inject some HTML into pages from specific domains. So if any page is coming from *.organisation.edu.au, force a snippet of html immediately after ...