Questions tagged [html]

210 questions
0
votes
1 answer

Append html to all requested pages through a specific router

I'm sure some of you have been on free wifi networks where they inject a small ad onto every page you visit. Basically, how do they do that? How does one append html to every request that passes through a specific router? I assume the router itself…
0
votes
3 answers

Parse PHP in HTML files - files download instead of parse

Seems easy, right? Done it a million times, right? Me too. For some reason this isn't working on an A2 hosting configuration. Anyone have any ideas? In .htaccess in "/" directory AddType application/x-httpd-php .html test.php which is "Hello…
csi
  • 1,555
  • 7
  • 23
  • 42
0
votes
1 answer

Apache custom error pages

Is there a way to make apache redirect error codes (401 particularly) to a custom page? I tried using "ErrorDocument 401 /errors/somepage.html" in the htaccess file but its not working. Any other ways of doing that? Oh - I don't have access to…
Halik
  • 165
  • 1
  • 7
0
votes
2 answers

Why I cant access my new AWS EC2 instances?

I am new to AWS Ec2. I just launch a instance, uploaded a test.php and test.html, both just display a "Hello world" text. I copied my public DNS: ec2-XXX-XXX-XXX-XXX.compute.amazonaws.com But it always has connection time out. I managed to connect…
moderaga
  • 79
  • 2
  • 7
0
votes
2 answers

URL arguments and Webserver configuration

I am trying to archive an old wordpress blog of mine. So far the best way I have found to do this is via wget. The problem is the name of the files it generates, like "index.html?cat=3&paged=3.html". When I open this file in my browser off a local…
Jono
  • 101
  • 2
0
votes
3 answers

How do I invoke a Perl CGI script when the user requests an HTML page?

Is there anyway to invoke a Perl CGI script when an HTML page is requested to server? Just like a script can be tied to an action, is there anyway to tie a script to "Request for page"
Jean
0
votes
1 answer

c (cgi) program to process html forms

Is it ok to have C or python program to process html form? Though I worked on php and java stuff.what are the disadvantages or advantage of such approach (using c/python)?
webminal.org
  • 273
  • 1
  • 5
  • 19
0
votes
2 answers

Why does IIS 7 return a 500 when I access an HTML page?

IIS 7 returns a 500 server error when I request an HTML page with this structure: Test Page Some text It works just fine the first time I access it, but subsequent attempts cause the…
0
votes
1 answer

Keep ASP.NET site and content separate

I have an ASP.NET site in folder x. Currently lots of other static content gets added to folder x and gets mixed in, making it one big mess. I would like to keep the ASP.NET site and the content separate somehow. I know you can create virtual…
Nelson Rothermel
  • 573
  • 1
  • 5
  • 9
0
votes
4 answers

Two identical pages

I have a php file, which when called creates a webpage. However, there are some things I can't do with this. Is it possible to mirror that webpage on another page, ie. have index.html calling and displaying the php file every time? Hope that makes…
James Apache
0
votes
2 answers

telnet to port 80 (nginx), with forward to apache2 at port 8080, fails with 'connection closed by foreign host' and no explanations seemingly anywhere

i'm running an Kubuntu 22.04 server, and want to shuttle LAN-only traffic from port 80, served as far as i can tell by nginx, to port 8080 served by apache2 (for PHP purposes). but i'm getting this "connection closed by foreign host" (presumably…
0
votes
0 answers

I want to add a custom 404 to all my URLs following a relevant pattern using .htaccess file

Hello, Google is currently indexing query string URLs of my website. Google has currently indexed almost 112k URLs that all of are duplicate versions of other URLs causing my website to slow down and negatively affecting my SEO. The structure of the…
0
votes
0 answers

Stripe Custom PHP & JavaScript Stripe Integrations: form refuses to load

I'm attempting to create a webpage for my startup, which is subscription-based. We have Stripe in live mode, and are essentially storing cards for future use, allowing us to have different payment options available when creating new subscriptions.…
JimmyP624
  • 23
  • 2
0
votes
1 answer

Where can i find the 404 template from OpenLiteSpeed?

I want to change/customize the standard 404 (Not Found) page/template from OpenLiteSpeed. But where can i find the 404 file via terminal? I'm searching in: cd /usr/local/lsws/ But can't find it. Can someone help me please? I'm using AlmaLinux 8…
DSTUDIOS
  • 1
  • 1
0
votes
1 answer

Odd behavior of bash array

I've recently encountered a strange script behavior and still don't understand y the array behaves this way. Here is a piece of the script: for nCDATAReg in $(seq 1 4) do sTestBuffer1=$(grep -Pzoi '\/\/<\!\[CDATA\[[\s\S]*?\/\/\]\]>'…