Apache server .htaccess query

Currently My URL is coming like http://www.example.com/tpjobs/postresume.html Because I have edited my .htaccess file I want to take off component name from my URL so it will looks...

.htaccess RewriteCond

Can anyone halp me with this .htaccess file, i've been trying to make an exception so i can access my subdomain which is form.domain.com i tried with RewriteCond %{REQUEST_URI} !^/form/?$ and...

.htaccess - RewriteCond: bad flag delimiters

I'm using .htaccess to block some bad request to my site. Everything worked as expected on my local server(XAMPP) but when I uploaded it to the host(shared) I got this error: RewriteCond: bad flag...

LWP refuses to connect via HTTPS

I am running the following Perl snippet on Debian using Perl v5.14.2 and libwww-perl v6.04-1 my $ua = LWP::UserAgent->new; my $req = HTTP::Request->new("GET", "https://google.com/"); my $rep =...

Using IIS url rewrite to protect against SQL injection

We use a variety of CMS (Wordpress, Joomla) on our server and therefore a lot of the code is third-party so we have no control over quality. Whilst we always keep everything up-to-date we recently...

Perl LWP Unauthorized While Curl Ok

I am attempting to recreate a working CURL command with LWP in Perl and I'm getting a 401 unauthorized error from LWP. The command posts JSON to a specific URL as seen in the code below. The...

Cannot open localhost

I have '.htaccess' from my project but I cant run it on my localhost. Everytime I try to open my root 'testphp' project folder for example: http:/localhost/training/testphp/ It will then...

Too Many Redirect Error with htaccess for site

I was running my site on hostgator global fine with this htaccess. But when I shifted my site to hostgator india server, I started to get TOO MANY REDIRECT error. Can you guys help me to find out...

Apache2 won't start with phpMyadmin default module - OpenBSD 6.0

I've installed phpMyadmin in OpenBSD 6.0 and when I do cp /var/www/conf/modules.sample/phpmyadmin.conf /var/www/conf/modules/ and restart apache, it fails to work. In error log it...

cpanm does not install modules

I am a brand new perl user attempting to install perl modules and their dependencies. I am trying to install the perl dependencies I need on a fresh Ubuntu 16.10 cloud server instance but they do...

Post install script: OpenSSH fails

I am currently working on a post install script for servers (mostly for myself, since I know what I need/want), targeting debian 8. But I have issues by make OpenSSH. First of...

Slow upload speed using Symfony2 - Nginx. 100 MB in 15 minutes

I have a form in Symfony 2.7 to upload videos between 100MB - 500 MB to my web. The upload speed is around 700 kbps so a 100MB video last more than 15 minutes to be uploaded. This is too much,...

Set the Perl environment correctly in dockerfile

I'm trying to build a dockerfile based on Centos 7 which can run a specific version of VEP (Variant Effect Predictor) which is written in Perl and has Perl dependencies which should be handled by...

Building docker image with TeXLive 2017 and latexml

I am trying to make a docker image with full TeXLive 2017 and latexml for compiling latex to pdf and also converting latex to html. I believe this would be a useful tool. Here is my...

ip works, domain doesn't, curl -v finds ip but returns empty reply

My site works with ip but not with domain. When I curl -v 'example.com' (with my domain in place of example) I get: * Rebuilt URL to: example.com/ * Trying 123.123.123.123... * Connected to...

Modsecurity2 regex with external file or use OR in rule with oeprators

I am trying to build a series of rules for ModSecurity to stop the bad bots. SecRule REQUEST_HEADERS:User-Agent "@pmFromFile /etc/apache2/conf.d/badbots.txt"...

.htaccess code showing a 500 error on apache server

Hello everyone I am trying to make a clean URL using .htaccess I had the following URL: www.vidtest.com/details.php?event=xyz which I converted to pretty URL www.vidtest.com/details/xyz This...

Nginx show custom error page upon return error code?

Inside the server block I have the following error page defined: error_page 406 /abs/path/to/error.ie.html; Also, the following condition to block IE: if ($http_user_agent ~*...

Block countries with geoplugin, but allow bots

I just lost my google position because the bots can't get access to my site as I was blocking foreign traffic, which included google bot as well. The plugin used is GeoPlugin, and on this page...

Redirecting all URLs containing a word to a URL using htaccess

I'm trying the create a htaccess rule to redirect urls that contain a certain word except for two...

Project Open Dockerfile postgres not starting

I'm trying to use the Dockerfile provided here and on building docker build . I get the error on line 69 (RUN createuser -s projop) which reports: Step 15/27 : RUN /usr/bin/pg_ctl -D...

.htaccess is giving 500 internal server error

I made many searches over the web regarding this issue and found noting related to my case as I'm already enabling the rewrite_module I'm using (Windows - Wamp) This is what I get in...

What is the reason for a response of a page full of strange encoded characters in PHP

I'm stuck in this issue for a week and could not find a solution. I'm using opencart v2.2 in Wamp environment. I'm getting the below response while accessing categories or products pages,...

Am I generating the OAuth signature incorrectly or is there another issue with this Perl / OAuth client code?

OK, I'm going nuts here. I've spent the better part of a week working on this with Fiddler, Rest API Log, Apache logs, Postman, etc. and am no closer to a solution. Hopefully this will provide...

.htaccess code working fine on local but not working on cpanel online

I am using below code to make pretty URL #code to make pretty URLS | we're using this code to achieve /category/slug RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}...

Understanding what's wrong with my authorization header using Perl, HTTP, LWP

I have a piece of PHP code that creates a Blob storage PUT request to a container in my Azure storage account. After significant tinkering, I finally got the header right and all is good....

Why does pip consistently fail to install pytest-django? .dist-info directory not found error

I have a docker container setup that keeps failing to install this pytest-django==3.4.8 from requirements.txt. If I comment it out everything else installs correctly. Tried everything from tearing...

nginx secure link sometimes return 403 error

In the logs of my server I often find a 403 error when a user accesses mp4 files, links to which are hidden using a secure link in nginx. Most users do not face such difficulties. But only a few...

Bokeh/panel won't render in-line with Jupyter Lab

I'm trying to visualize Bokeh plots and panels with a Bokeh backend in a notebook in JupyterLab. Things were running fine until I updated. Current packages and versions are below I have tried the...

Perl LWP::Simple get fails from Ubuntu server, but not local machine

I'm trying to get something from a webpage using something like this #!/usr/bin/perl use LWP::Simple; use LWP::Protocol::https; $url =...