Google chrome update their security. how to enable HTTPS:// in xampp?
1) There is the config file xampp/apache/conf/extra/httpd-ssl.conf which contains all the ssl specific configuration. The files starts with <IfModule ssl_module>, so it only has an effect if the apache has been started with its mod_ssl module. Open the file xampp/apache/conf/httpd.conf in an editor and search for the line
#LoadModule ssl_module modules/mod_ssl.so
remove the hashmark, save the file and re-start the apache.
2) Also if you your document root is not properly configured than it might give you permission denied error. check for DOC ROOT
Check the highlighted text
I found this here. Refer to this for any help.
Related
I am trying to setup a local https server using Apache2.4.27.
I have followed the instruction given on this website how to setup SSL on Apache.
When I uncomment LoadModule ssl_module libexec/mod_ssl.so on my Apache httpd configuration, I got the following error when I tried to restart my Apache server:
httpd: Syntax error on line 141 of /usr/local/etc/apache2/2.4/httpd.conf: Can't locate API module structure `ssl_module' in file /usr/local/opt/httpd24/libexec/mod_ssl.so: dlsym(0x7fe0a1c07080, ssl_module): symbol not found
I have confirmed that there is mod_ssl.so file inside my httpd's libexec folder.
I wonder where did I go wrong, since fresh installation of openssl and apache could not help me to solve this problem.
I have installed latest TeamCity 9, now I want to access it from the public Internet via HTTPS. So I followed the instructions to setup TeamCity behind an Apache proxy server, as described in the official docs.
Now when I try to access the TeamCity server in the browser I get a 404 page from the Tomcat server. I am not sure what I did wrong, but the issue might be related to the /tc sub folder I have moved the content ROOT into (as described in the docs).
When I connect directly from the server to http://localhost:8111/tc I get exactly the same 404 message.
I feel a bit lost here.
Any ideas where I should look for the error?
PS: When I move the content ROOT back into the original folder, and set the Apache proxy accordingly, then it works fine. So the issue is indeed related to the /tc sub folder.
This is what worked for me
Step 1: I installed teamcity at the port 8080
Step 2: Moved all contents of <teamcity_home>\webapps\ROOT\*.* to <teamcity_home>\webapps\teamcity
Step 3: Created <Apache_Home>\conf\extra\httpd-teamcity.conf with the following contents
ProxyRequests Off
ProxyPass /teamcity http://localhost:8080/teamcity connectiontimeout=240 timeout=1200
ProxyPassReverse /teamcity http://localhost:8080/teamcity
Step 4: Added the following to <Apache_Home>\conf\httpd.conf file
#Include TeamCity Settings
Include conf/extra/httpd-teamcity.conf
and uncommented the following
# Modules to load to redirect teamcity
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Step 5: Accessed Teamcity via http://localhost:8080/teamcityORhttp://localhost/teamcity
Note: you can no longer access teamcity via http://localhost:8080
And update the configuration of your agent to point to the new server location.
When I'm trying to start the Apache 2.2 server it is showing the following message: The Requested Operation has failed
In command Prompt it is showing as follows:
C:\Documents and Settings\amth>net start apache2.2
The Apache2.2 service is starting.
The Apache2.2 service could not be started.
A service specific error occurred: 1.
More help is available by typing NET HELPMSG 3547.
Open run( win + r ) in windows and then type services.msc. Search for Apache service. Double click on the service and select any startup type other than disabled. This should work like a charm.
Open conf folder then open httpd.conf file in your text editor.
Find this line:
Listen 12.34.56.78:80
Listen 80
and change it to
Listen 12.34.56.78:80
Listen 8080
Then hit save
I have wasted a whole day on figuring out why curl_init() threw an undefined-error. Im using Windows, Apache 2.4 and PHP 7.3
After trying to:
Install a fresh version of Curl As described in this post
Enabe Curl in the php.ini file following this description
I still got this error.
The solution was to add the directory of the php e.g c:php/ to the PATH Variable in the Windows environment variables.
->Hit the Windows-Key and S
-> search for "System"
-> go to advanced options(a small window shuld pop up)
-> hit environment variables
-> in the **bottom** box scroll until you find "PATH"
-> select it and hit "edit"
-> enter the php directory and close the window
-> reboot your PC
Hopefully it will work for you too :)
Have you done any changes in httpd.conf file ? i was also facing same problem in my case i have saved httpd.conf file as txt so due to that i was getting error
Was getting this issue when trying to start Apache with mod_jk. As part of loadmodule in http.conf file LoadModule jk_module modules/mod_jk.so was added but in Apache2.2\modules folder mod_jk.so file was not available. Added mod_jk.so file to modules folder and apache started without any issues.
Here is what I did - if you uninstall and reinstall apache via command prompt it
httpd -k unistall/httpd -k install
then it displays the errors
in my case the require all was missing 'granted' at the end of to look like 'require all granted'
<Directory />
AllowOverride all
Require all
</Directory>
If your lan ip changed then you would come across this error. In the httpd conf file you to rectify the following:
Listen IP:Port
I ran into the same error message on Windows Server 2008 R2. I was using SSL and realized that my signer certs, configured in ssl.conf, where placed in the wrong folders on the file system. I placed the certs in the correct spot and the service and Apache was working fine afterwards.
I've tried closing World Wide Web services, changing a lot of ports and surfing many forums, and eventually I looked in to Logs=>Apache (error.log) files.
I saw in this error:
PHP Fatal error: Directive 'asp_tags' is no longer available in PHP in Unknown on line 0
Then I opened php.ini files in XAMPP. Find with ctrl+f asp_tags=On line and turn it to Off.
All of it then worked.
In my case Apache 2.4 is worked on Win7Pro 64bit. Last week it worked fine but today I was unable to start it as usually. I tried to check logs for errors but no clue. Then I went to Control panel -> Administrative tools -> Services and found there Apache service was disabled!? Click on property, set Startup type to manual and - voila! It started like charm.
My website is deployed and running on apache server from enomcentral hosting environment with only limited access so i can't change any configuration setting except htaccess file. Also another application running on tomcat in different domain server with full admin access.
e.g - www.example.com is running on enomcental. and tomcat application running on www.abc.com/xyz.
I want to access tomcat application, running on different domain ,using the url www.example.com/xyz.
so when I enter Url www.example.com/xyz the URL remains same but the content should be comes form www.abc.com/xyz i.e., tomcat server example/
URL redirection changing the browser URL.
I can only change ion .htaccess file.
mod_jk.so configuration not allowed.
What you need is mod_proxy, if enabled,
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
then, this rule will work.
RewriteRule ^xyz$ http://www.abc.com/xyz [P]
P means proxy, docs here.
But if mod_proxy is disabled, then could you make the /xyz point to some cgi(e.g proxy.php), which is under your control, and make the cgi read content from http://www.abc.com/xyz?
I'm running a Ubuntu Sever with Apache/2.2.17. I can't seem to run JSP I just get the source code in the browser. What am I doing wrong?
Thanks
What am I doing wrong?
Expecting that Apache HTTPD magically supports JSP. It doesn't. You need Apache Tomcat instead.
See also:
Our JSP wiki page - at the bottom you can find several tutorial links to get started properly.
Try this
1)get the mod_jk.so
2)include this in httpd.conf file
LoadModule jk_module modules/mod_jk.so
3)Then in virtual host section of httpd.conf
JkMount /test/*.jsp loadbalancer
put your jsp file in webapp dir in the tomcat directory. Run as localhost:8080/your.jsp from your browser. Also make sure tomcat is set properly by running localhsot:8080 form your browser.