Category Archives: server

Unable to view images on reverse proxy

I have configured reverse proxy on a local virtual box and I have installed WebLogic server on following IP address 192.168.0.203 (which is on a local network). I have entered following details on httpd.conf

<VirtualHost 127.0.0.1:80>
     ServerName www.nikhilesh.com
     ServerAlias nikhilesh.com
     ErrorLog /var/log/httpd/error_log
     TransferLog /var/log/httpd/access_log

     <Location />
    ProxyPass  http://xxxxxxxx.xxxxx.com:7001/console/ retry=0
    ProxyPassReverse  http://xxxxxxx.xxxxx.com:7001/console/
    ProxyHTMLURLMap   http://xxxxxxx.xxxxxx.com:7001/console/
    RequestHeader    unset  Accept-Encoding
    #ProxyRequests off
    ProxyHTMLEnable On
    SetOutputFilter proxy-html
    ProxyHTMLDoctype XHTML
    ProxyHTMLStripComments on
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1
     </Location>

#ProxyPreserveHost On
</VirtualHost>

I have entered following details in the host file

192.168.0.203   xxxxxxx.xxxxxx.com    xxxxxx

I have restarted the server I have entered following address(www.nikhilesh.com/) on the browser it is showing enter image description here

Actually, it should display enter image description here

when I am entering the credentials and click on the login button it displays following error enter image description here

Accessing another port through HTTPS

I have a website running on HTTPS (port 443) with signed certificate: https://example.com. And set virtualhost redirect, so whenever user accessing http, it will redirected to https.

On the same server, I have a nodejs application running at port 8085. And whitelist it from firewall.

The problem is, I can get responses from the nodejs if I use server IP address: http://xxx.xxx.xxx.xxx:8085/testing.

But timeout when tying to access it from https://example.com:8085/testing. And also failed when accessing from http://example.com:8085/testing

What should I do in order to make https://example.com:8085/testing working? Any routing or configurations that I missed?

Localhost not loading on mobile device

As the title states, my iMac won't allow mobile devices to connect to the web server. I can access localhost via

localhost
192.168.1.187:1717

These both work on my iMac and also my MacBook however the funny/weird issue is that the mobile device won't load it. I mean the files are hosted on the iMac and are accessible completely (both on localhost and the IP address) and the site also works on my MacBook (On the IP address) however my mobile device won't load it. Why?

I've disabled my firewall, changed ports through XAMPP and messed around with Apache Config but no to avail.

(This is definitely not a duplicate as EVERY question I've read the IP address doesn't work on the local machine but for me it does)

Session gets mixed up on localhost…?

I've two projects on my machine(localhost), what happens is, the session of one project is recognized by another project:

The URL of both the projects are:

http://localhost/Blog/admin/admin_homepage.php

http://localhost/MyMVC/

So when I log into Blog project, I automatically get logged into MyMVC and when I logout of MyMVC, I get logged out from Blog as well.

If someone could explain this behavior(like why this mix up happens?), logically, it would be of great help!

Why tomcat does’nt work with proxy set in a network with netbeans(8.2)?

so i have been working on apache tomcat in netbeans and i faced one issue due to which tomcat was not starting in my organization's network, but with same settings it was running perfectly on my home wifi.

Later, i figured out if i set proxy to "No proxy" in the netbeans settings it will work and the solution worked. But, i still do not understand why this happened.

I researched a little but answers were not satisfactory. Basically, i want to understand how apache tomcat startup was affected and in what cases i may need a proxy.

You can consider me as a beginner if you are answering to this... Thanks!

Server unable to read htaccess file, denying access to be safe. Apache is unable to raad .htaccess files

Forbidden

You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4 Server at www.itexpertsbd.com Port 80

I could not find any way how to solve this