Questions tagged [apache]

Use this tag (along with an appropriate programming-language tag) for programming questions relating to the Apache HTTP Server. Do not use this tag for questions about other Apache Foundation products. Note that server configuration questions are usually a better fit on https://serverfault.com

apache
Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

.htaccess not including https or http in address bar

How can I force domain.co.nz to redirect to https://domain.co.nz? Currently using: I am currently using the following .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /sub-...
Jess McKenzie's user avatar
0 votes
1 answer
1k views

how to make django render the default home page instead of apache

As is known, after issuing a request with a sole IP or server name through web explorer, apache will return its default static home page to the explorer. I'm using django and apache with mod_wsgi to ...
Lexinton Ave's user avatar
0 votes
0 answers
22 views

Paths in Node.js

I used to use Apache + .htaccess to serve a index.html page in a subdomain. The .htaccess redirected every pathname in any subdomain to the index.html itself. For example: In http://path1.myserver....
Gustavo Lopes's user avatar
0 votes
0 answers
141 views

Where to set PHP environmental variables? [duplicate]

I have a lot of variables in the Configuration->Environment section of PHP info that were included on my old server but are missing on my new server. Old server PHP 5.2.6 Apache/2.2.10 Linux/...
AllisonC's user avatar
  • 3,091
0 votes
0 answers
580 views

Apache2 HTTP POST and GET result in 500 Internal Server Error | Debian

I'm facing the problem that HTTP GET and POST requests result in a 500 Error on my Server while normal urls without any request Methods works fine. I have an Apache2 with Debian 8.7 Server. My ...
user avatar
3 votes
1 answer
5k views

Java iterator through excel rows

I am checking every excel row and looking for certain value. After I found that value it should print an output about that row location. But if that value is incorrect or not found I am printing match ...
TheDude's user avatar
  • 135
0 votes
0 answers
91 views

Rewrite rule for social crawlers only

I am trying to redirect facebook and twitter crawlers to some different page using following rules: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot) ...
Arushi Jain's user avatar
0 votes
2 answers
94 views

Mask subdomain.mydomain1.com to subdomain.mydomain2.com

I have got customer.mydomain1.com and want to mask it to customer.mydomain2.com so that customer.mydomain1.com shows content of customer.mydomain2.com and url stays the same as of customer.mydomain1....
K D's user avatar
  • 1
1 vote
1 answer
42 views

htaccess - redirecting all traffic to app.example.com

Im trying to redirect my app yet i have some problems. I tried with: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^app.example.com [NC] RewriteRule ^(.*)$ https://app.example....
Adrian Mirowski's user avatar
1 vote
1 answer
80 views

Different headers for different parameters

I have some parameters on urls. URLs with one parameter should get own special indexation/crawling rules with X-Robots-Tag. This is done by: <IfModule mod_rewrite.c> RewriteCond %{QUERY_STRING} ...
Evgeniy's user avatar
  • 2,409
5 votes
1 answer
6k views

How to change XWPFTableCell margins in Apache POI in Java?

I tried searching too much for this but did not get the desired result. I am using Apache POI to copy specific ata from an Excel sheet to a table in MS Word 2010 file using XWPF. I have completed that....
Kashyap Kotak's user avatar
0 votes
2 answers
2k views

Uploading a template in apache NiFi using Rest API in Java

I am trying to create a REST API call to import a template into my NiFi UI post which Instantiate the same. Below is the code which I tried, String siteUrl = "localhost"; String portNumber = "8080";...
Gladiator's user avatar
  • 423
2 votes
1 answer
2k views

Apache ErrorDocument 404 in subdirectory without .htaccess

I'm doing some performance enhancements and came across the recommendation that .htaccess files can (and should) be rolled up into the httpd.conf. From the Apache .htaccess How To: You should ...
Arth's user avatar
  • 12.9k
2 votes
1 answer
602 views

Apache POI is not formating cells properly

I am currently facing some problems working with Apache POI. My current project is to read data out of a xml-file and write it into a excel file. The excel-writing part is done with Apache POI, but I ...
Ihavenoclue's user avatar
2 votes
2 answers
136 views

Get the latest part of the URL as an input to a PHP file

I only have two files at my directory of http://www.example.com/members/: an .htaccess file and an index.php file: The contents of the .htaccess file: RewriteEngine on RewriteRule (.*) index.php?...
user avatar
1 vote
0 answers
74 views

How should I pass clustered dataset to Apache Mahout recommender?

I am working on Movielens dataset and I want to create a user based recommender system which is based on k-means clustering. I have created the clustered dataset using Python and now I want to use it ...
sam007's user avatar
  • 79
0 votes
0 answers
1k views

include_once failed to open stream and Warning: include_once(): Failed opening.for inclusion (include_path='.:/usr/share/pear:/usr/share/php')

I am getting below error . I have already tried with dir , document root, require_once and require. This error i am getting in Live Server. Warning: include_once(/storage/ssd1/655/2980655/...
KishanK's user avatar
2 votes
1 answer
103 views

Error when trying to fix

This is about fixing an issue: LEVERAGE BROWSER CACHING(expiration not specified) I added the following lines of code in .htaccess <FilesMatch "(?i)^.*\.(js|css)$"> ExpiresActive On ...
Pankaj's user avatar
  • 9,977
1 vote
1 answer
98 views

Ubuntu Apache doesn't redirect http to https

im using Apache/2.2.15 (unix) i had change the server to work on https, its work fine except a small warning, the server hostname is example and the cert CN is example.domain , so the HTTPS sign has ...
bogin's user avatar
  • 11
0 votes
1 answer
46 views

How do I configure Tomcat to redirect two paths to two other different applications

How do I configure Tomcat to redirect the following: https://localhost:8080/app1 to http://localhost:15000/ https://localhost:8080/app1/abc to http://localhost:15000/abc https://localhost:8080/app2 ...
user361676's user avatar
0 votes
1 answer
622 views

Entering AuthUserFile info in .htaccess when root path is dynamic

I'm trying to follow the instructions on http://www.4webhelp.net/tutorials/misc/htaccess.php in order to create a password file placed outside of the web root and use it in conjunction with .htaccess. ...
danbae's user avatar
  • 603
2 votes
1 answer
1k views

What is the meaning of the lines written in wsgi.conf

I'm trying to use Python in my project (without any other framework as requested by my teacher.) So I've installed Apache 2.x and mod_wsgi and, following a tutorial, I've run my first Python script. ...
NosPix's user avatar
  • 69
1 vote
2 answers
98 views

Very basic htaccess pretty URL

I'm having trouble redirecting a hard coded URL to a pretty URL. I want to access the following url : mysite.com/index.php?page=links By navigating to : mysite.com/links/ I've read a whole bunch ...
user3717922's user avatar
-1 votes
1 answer
35 views

Apache is downloading .aspx page instead of displaying them

Apache is downloading .aspx page instead of displaying them, Please let me know if someone has experienced same issue and got that fixed .
Shivraj singh's user avatar
0 votes
1 answer
463 views

Docker TYPO3 environment

I created a Dockerfile with ubuntu,php,apache & mysql now I'm stuck I would like to integrate TYPO3 into it I can get the installation and put it in my ubuntu root machine. How can I access it on ...
mY777's user avatar
  • 239
0 votes
1 answer
59 views

WordPress site not connecting to DB on non-www

I'm having an issue with my WordPress site where it's unable to connect to the database on the non-www domain. I'm trying to rewrite all non-www requests as www with the following rule, but it's had ...
Mario Parra's user avatar
  • 1,534
0 votes
0 answers
264 views

Windows Apache 2.4 - PHP cuRL not loading even though extension is set in php.ini

I am trying to activate curl on my Apache Server. So far it does not load. I edited the php.ini file to allow the extension: And I made sure using phpinfo() that I was editing the proper ...
Apparently Im user2212428's user avatar
0 votes
2 answers
261 views

How to migrate an htaccess file from CodeIgniter 3.0.6 to 3.1.6?

I have a .htaccess file that works fine with CodeIgniter version 3.0.6. When I migrate to CodeIgniter version 3.1.6, this htaccess doesn't work and the web page says 404 Page Not Found ...
Septian Nugroho's user avatar
5 votes
2 answers
10k views

Deploying React App to Apache Server

I have a finished react app that works well on my localhost with npm start. I created the project with create-react-app and used the npm run build to compile a production website. I have the whole ...
Timbo's user avatar
  • 487
4 votes
1 answer
27k views

Uninstall/Remove tomcat 9 completely from CentOS

I am trying to remove tomcat 9 from CentOS completely. First I used rpm -qa|grep tomcat The output I got was tomcat-9.0.0-26.el7.centos.x86_64 Then I used sudo yum remove tomcat.x86_64 When ...
Mukund S's user avatar
0 votes
0 answers
65 views

Multiple web docker containers on a host

What is the best practice concerning multiple web containers running on a single host. How would I assign these subdomains subdomain1.mydomain.com to container1 and subdomain2.mydomain.com to ...
Theo's user avatar
  • 2,522
1 vote
1 answer
123 views

.htaccess redirect syntax for URLs with query parameters in origin and target URLs

I have an IIS redirect rule that works perfectly. I've been trying to convert it into .htaccess format to use on the live web host, with little success. The intent of the rule is to redirect any ...
Frank Bailey's user avatar
1 vote
0 answers
1k views

How to authenticate OData service endpoint with Apache Olingo 4.4.x API Java Client Library?

I am using Apache Olingo Java Client API to call OData service endpoint, which requires an authentication. I had tried following code on my environment : URI absoluteUri = client.newURIBuilder(...
J. P's user avatar
  • 11
0 votes
1 answer
2k views

AH02429: Response header name 'record Created - ' contains invalid characters, aborting request

I have created a restful api with basic authentication and works well with mi IDE and Tomcat, and I have tested with Postman. However when I deploy it into a linux server and I have got the following ...
Sara's user avatar
  • 1
0 votes
1 answer
3k views

Apache proxy redirects from HTTPS to HTTP

Below is apache reverse proxy configuration snippet which uses "ProxyPass" and "ProxyPassReverse" Listen 1.2.3.4:80 <VirtualHost 1.2.3.4:80> ProxyPreserveHost On SSLProxyEngine On ...
Pushpraj's user avatar
0 votes
0 answers
54 views

Not able to run flask app on apache with cent os

I am trying to run flask app on apache with centos. I followed this guide http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/ but with no success. The service isn't running on port 5000 when i do ...
Kunal Chauhan's user avatar
1 vote
2 answers
2k views

"The requested URL /projects was not found on this server" when I am trying to run redmine(Ubuntu 16.04, Apache2, Passenger )

I installed passenger over apache in order to run redmine (ROR application)on Ubuntu 16.04. I setuped everything as described in the documentation but I always get the "The requested URL /projects was ...
sunblast's user avatar
  • 219
1 vote
1 answer
566 views

Apache Solr - Index the folder having PDF files with particular page number

I am new to Apache Solr search technology and wishes to understand how can we index multiple PDF files under a folder. Currently i have installed Solr 6.6.1 on a separate server. It is working fine ...
Karan's user avatar
  • 3,318
0 votes
1 answer
550 views

Using apache Url Rewrite from HTTPS to another HTTPS

I have an apache server on Centos 7. I also have a miltidomain certificate. I would like to redirect https://old-domain.com to https://new-domain.com. Redirecting from http to https works but not ...
Tony92's user avatar
  • 91
1 vote
1 answer
637 views

.htaccess -> Characters not escaping in rewrite string "(" ")"

I'm currently trying to add some redirects from a very old site that had PDFs and some of these PDFs have used brackets to contain the years. For example: /document%2070C11-name%20(2012).pdf So the ...
Kane Mitchell's user avatar
0 votes
1 answer
24 views

How do I mod_rewrite domains pointing to my origin server? [closed]

How do I rewrite all domains pointing to my Origin Server - To my Domain Name? I want to prevent other Domains hosting my content!
InfamyStudio's user avatar
0 votes
1 answer
42 views

rewriting a URL using .htaccess

Good morning, I want to create a simple URL which changes a certain URL from let's say index.php to "home", to accomplish this I wrote the code below and saved it as a .htaccess file RewriteEngine on ...
robomano's user avatar
3 votes
1 answer
3k views

Custom URL in apache using get parameters

I'm trying to figure out how to rewrite urls using apache webserver and php. The url below is the real nonrewritten url: http://localhost:1337/rewritetest/index.php?id=12 And I want to reach it by ...
DavidLar's user avatar
0 votes
1 answer
453 views

Extract all "heading 1" from a Word doc

I would like to extract all the text from a word document with "heading 1". Currelenty I have the following code : public static void Alina(String bestand, String kop) throws Exception { ...
Patrick's user avatar
  • 341
0 votes
1 answer
1k views

Jupyter Notebook 404 After Login

So I'm trying to setup a notebook instance on my server. Ubuntu 16.04 jupyter notebook is being run from an account set up to only do that. Apache 2 is using ProxyPass to pass all requests to the ...
user8314172's user avatar
1 vote
1 answer
2k views

OSX/Apache ModuleNotFoundError: No module named 'encodings'

I have a local Django application that I've been developing for a while. Today, after about a month off from working on it I went back to it, but it wouldn't load. Checking the apache error log, I see ...
brewcrazy's user avatar
  • 655
0 votes
2 answers
1k views

django apache ImportError: No module named

So this is driving me crazy I have python3 and modwsgi and apache and a virtual host, that work great, as I have several other wsgi scripts that work fine on the server. I also have a django app that ...
noone392's user avatar
  • 1,894
0 votes
0 answers
4k views

Apache 2 PHP "not found or unable to stat" crashes our site

Our server started to get hit with a particular URL from many different IPs. The URL was for the file wp-login.php. We are running PHP but we are not running Word Press. This looks like some sort of ...
Warren's user avatar
  • 755
6 votes
8 answers
9k views

PHP not working after MacOS update to High Sierra

I updated my mac to newest version of os. When I try to run PHP project, browser shows the php code instead of interpreting it. I noticed that in new OS php is in version 7.1. I installed 5.6 (it's ...
kamcik's user avatar
  • 73
0 votes
1 answer
102 views

htaccess shorten URL

I have a URL like this: http://www.example.com/folder1/assets/Video/150/filename.mp4 I'm trying to shorten it like this http://www.example.com/challenge/Video/150/filename.mp4 My current .htaccess ...
C-H-E-F's user avatar
  • 165

1
440 441
442
443 444
1850