Tag Info

New answers tagged

1

Your Apache access logs should log the IP address of visitors by default. If your CMS system handles the login and sets a cookie for the logged in user, you must have Apache log that cookie to be able to see the logged in user. You can do so by modifying the log config with the name of the cookie: %{Foobar}C (where Foobar is the name of the cookie). For ...


0

Apache by default only logs access and errors, Since accessing a user login authentication is handled by a content management system of some sort that would need to log the entries separately or you set it up to share the access log. So you will need to get your platform/application logging.


1

This article shows how to do black box probing to test for SSI Injection exploits using text very similar to what you describe. An exploit would certainly be possible in the case that the text is written to a file and subsequently served by the webserver that supports SSI (whether or not that site otherwise uses SSI at all). I am not aware of a way that ...


1

Look in your Apache error log to see if there is a message. Often there's a typo or other error in the .php file that stops it from running. In Ubuntu, the error log is in /var/log/apache2/error.log - you may need to sudo when trying to read it (in other words, sudo tail /var/log/apache2/error.log). It's also possible you haven't given apache (the user ...


0

You should not have to do a AddType in the httpd.conf as this should be added during the 'apt-get install php5' process. It sounds like you have no enabled PHP5 and looking at that guide it does not mention a2enmod. Please try: sudo a2enmod php5 then restart your Apache by doing a sudo /etc/init.d/apache2 restart or sudo service apache2 restart. Other ...


0

The documentation states: [Last-modified] is only valid if the operating system and file system return appropriate stat() results. Since it is not working for your system, you can turn off the last-modified with: IndexOptions SuppressLastModified


0

If your web page is hosted on port 9001, just enable any port on your linux box and make these changes in /etc/httpd/conf.d/ssl.conf. Then, set your listen port to 9002 and create your SSL certificate and key and put the following configuration in your httpd.conf file: Listen 9001 <VirtualHost *:9001> ServerAdmin root@localhost DocumentRoot ...


1

You would like to use Ajax. I would recommend you use some kind of javascript library to handle the ajax calls. "With Ajax, web applications can send data to and retrieve data from a server." Here is a sample. Javascript (jquery) var x, divided, result; x = 6; divided = $.ajax({ type: "GET", url: "serverside.php?x=" + x, cache: false, ...


0

Here is a very simple PHP script to get you started: <?php if($_GET['v']){ echo intval($_GET['v'])+1; } ?> <form> Enter a value: <input type=text name=v> <input type=submit> </form> I saved that as test.php in my www documents folder. The I opened it as http://localhost/test.php and was able to submit a number and ...


0

Your .htaccess looks like you are using Wordpress. Is this true? If that is the case, just go to Settings -> General and change WordPress Address (URL) and Site Address (URL) to versions with 'www'.


0

You'd do best to go ahead and change the servername inside httpd.conf, something like the below code. Make sure it is a non-alpha name, just normal text. <VirtualHost *> ServerName your_server_name DocumentRoot /var/www <Directory /var/www> AllowOverride All Options All </Directory> </VirtualHost>


0

Just so you know folks, I ended up re-installing the system. I would definitely say that the issue was from the host provider with its default install. So yea, after hours and hours of trying to debug and fix this (I tried Apache tweaking, System encoding, File system checks, ...) ended up finally just installing a


0

I ran into a similar situation yesterday. My website was working fin, but there were errors in Apache's error log. The problem was caused by a mistake in my PHP files, not in my RewriteRules. My PHP files contained the following fragment: <script src="javascript/package-min-1367246122.js"></script> The missing slash caused "file does not ...


0

This blog explains what's happening: After enabling HTTPS for a certain VHOST (within MAMP, but that is probably not relevant), Internet Explorer 8 started denying to display any HTTPS enabled page, showing a 403 Forbidden error instead. This problem occurred because of the following setting in my Apache configuration… In your Apache SSL config ...


0

Here is an apache virtual host configuration that should work for you to reverse proxy your web app through Apache. Replace mydomain.example.com with your actual domain name. You will need to have mod_poxy and mod_proxy_http loaded by apache and if you use ProxyHTML directives, you will need mod_proxy_html as well. <VirtualHost *:80> ServerName ...


1

Do not change the chmod for /varas this should remain default. Apache runs on the usergroup www-data so /var/www should have the owner has www-data and not root, if this is the case then 754 is absolutely fine. This may help: chown www-data:www-data /var/www chmod -R 754 /var/www Normally this is set-up for you if you used an installer such as apt-get ...



Top 50 recent answers are included