apache2

Apache Mod_Rewrite

不羁的心 提交于 2019-12-25 02:22:23
问题 I'm struggling writing a .htaccess file to basically map the following domains: dev.domain.com/$1 => index.php/dev/$1 api.domain.com/$1 => index.php/api/$1 domain.com/$1 => index.php/front/$1 www.domain.com/$1 => index.php/front/$1 At the moment, everything is mapping to index.php/$1 with the following configuration: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> This is what

Solr with Jetty on LAMP server - Admin page access issue

纵然是瞬间 提交于 2019-12-25 02:00:25
问题 I have Solr with its default Jetty that came with example directory installed on Linux server which has apache2 as its web server . Now, within the same private LAN, when I open a browser and type in http://<ip-address>:8983/solr works ONLY when I do port forwarding otherwise it doesn't work . I am not sure what could be the problem? Please note this installation has been done on a remote server in a hosting environment for production deployment and I am a beginner wrt deployment stuff. 回答1:

how to ignore the .htaccess file from a parent directory

三世轮回 提交于 2019-12-25 00:38:15
问题 I'm using rewrite rules for search engine optimized url's In my root folder I have the following .htaccess file: Options +FollowSymlinks RewriteEngine On RewriteCond %{http_host} ^elitegameservers.net [NC] RewriteRule ^(.*)$ http://www.elitegameservers.net/$1 [R=301,L] rewriteEngine on rewriteBase / rewriteCond %{HTTP_HOST} ^(.*)haloservers(.nl|.us|.net)$ rewriteRule ^(.*) http://www.haloservers.net/$1 [L,R=301] RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?haloservers(.nl|.us|.net) [NC]

Http request failed when including file through url from subdomain

假如想象 提交于 2019-12-24 23:59:10
问题 I'm trying to make reliable code that will work both on my local server and on my actual server for website so I won't have to change paths etc. to my files. I cannot use relative paths since I'm using a subdomain so browser doesn't see folders above that path so what I'm trying to do is on my local server use root folder to guide my code where the files are and on webserver I retrive servername. The error that I get right now is Warning: include(http://cms.domain.com/serverdetails.php):

Csrf token validation failed in OrangeHrm after Apache update to 2.4.27

本秂侑毒 提交于 2019-12-24 23:01:26
问题 Getting following error while trying to login. I have been tested with most of the browser , yet same error. Running with php 5.6. Is there any idea , what aspect should i look into to resolve the issue. I have been looked through error logs , but unable to find any hints of this error. Does it something to do with apache or OrangeHrm. 回答1: Thanks guys, whoever tried to help, I have been resolved the issue and i think it may helpful for others if have similar issue: In apache2 the cookie was

how to change mime types in MAMP

自古美人都是妖i 提交于 2019-12-24 21:08:36
问题 I'm developing a website that has a HTML5 video. It looks like when ogg files are served with other mime types than video/ogg firefox flips. I've updated the mime.types file inside the mamp/apache/config folder and have restarted the MAMP server multiple times, but ogg files are still served with plain/text context-type. Can someone point out what I need to do? UPDATE The only time I'm able to change the mime type is if I change the DefaultType text/plain to DefaultType video/ogg which is

Getting 403 Forbidden Error Using web2py with Apache2 WSGI on Fedora

南笙酒味 提交于 2019-12-24 19:38:03
问题 I'm getting 403 Forbidden with the webpage displaying: Forbidden You don't have permission to access / on this server. The access log shows the following corresponding to this: [Mon Jan 20 17:12:03.888576 2014] [authz_core:error] [pid 1940] [client XX.XX.XX.XX:32491] AH01630: client denied by server configuration: /opt/web-apps/web2py/wsgihandler.py I've the following permissions set for the above directory: /]# ls -ld opt drwxrwxrwx. 4 root root 4096 Jan 10 20:05 opt opt]# ls -ld web-apps

Golang ReverseProxy with Apache2 SNI/Hostname error

我与影子孤独终老i 提交于 2019-12-24 17:45:56
问题 i am writing my own ReverseProxy in Go.The ReverseProxy should connect my go-webserver and my apache2 webserver. But when I run my reverseproxy on another IP-Adress then my Apache2 webserver I got following error in my apache-logfile, when the reverseproxy sends the request to apache. "Hosname xxxx provided via sni and hostname xxxx2 provided via http are different" My Reverse Proxy and apache-webserver running on https. Here some code: func (p *Proxy) directorApache(req *http.Request) {

PHP memcached session not working

我怕爱的太早我们不能终老 提交于 2019-12-24 14:04:00
问题 I started to use memcached for storing session files, but Session doesn't work and apache sends response too slow. How can I solve the problem? Modifications in php.in are: ;session.save_handler = files session.save_handler = memcached session.save_path = "tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15" 回答1: I solved the problem, Solution is connection url without tcp:// ,so session.save_path should be session.save_path = "127.0.0.1:11211?persistent=1&weight=1&timeout

Three or more dots followed by a slash in url causes an internal server error

我的未来我决定 提交于 2019-12-24 11:42:42
问题 On my site, if a url contains three or more dots followed by a slash, an internal server error (500) is given. The server runs linux and apache 2.0.63. Anyone knows what may be the cause? Thanks! 回答1: It's possible you are seeing the error because two periods '..' can be used to step back up a folder level, and the server may be detecting it as a potential security breach (someone trying to get into folders they shouldn't) or it could be that it's actually trying to navigate to that folder