Jump to content

Stray_Bullet

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.critical-damage.com

Profile Information

  • Gender
    Male
  • Location
    New York, USA

Stray_Bullet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Haha I was just about to say the same thing... Had to log in & you beat me! lol
  2. Hehe I been through the same thing... When you think your keyboard locks up, it doesn't! Just enter your PEM pass phrase, then hit enter. It will ask you to re-enter your PEM pass phrase, then press enter again...
  3. You have to activate the module in your httpd.cfg Look for this line & uncomment it... [code]# LoadModule expires_module modules/mod_expires.so[/code] Then restart apache... Hope this helps!  8)
  4. [quote author=steviewdr link=topic=124542.msg516217#msg516217 date=1170090922] mod_throttle is one of them - it limits the connections and bandwith been eaten up in a DOS. [/quote] I use mod_limitipconn.  ;D
  5. Um neither one of those links are okay... This is what I see... [URL=http://img171.imageshack.us/my.php?image=huhic0.jpg][IMG]http://img171.imageshack.us/img171/9761/huhic0.th.jpg[/img][/URL] First off this is wrong... [code]form action=""[/code] Your sending the post info nowhere... Here... I created a little form for you here is the code... [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php if($_POST['op'] != "send") { # display the form # $display_block = "<h1>Type your name & submit!</h1> <hr> <p>&nbsp;</p> <form method=\"post\" action=\"$_SERVER[PHP_SELF]\"> <input type=\"text\" name=\"name\"> <input type=\"hidden\" name=\"op\" value=\"send\"> <p><input type=\"submit\" name=\"submit\" value=\"Post It\"></p> </form>"; }else if($_POST['op'] == "send") { # check for required fields # if($_POST['name'] == "") { header("Location: index.php"); exit; } $display_block = "<h1>Your name is...</h1> <hr> <p>&nbsp;</p> <b>$_POST[name]</b>"; } echo "$display_block\n" ?> </body> </html>[/code] Just a helpful hint... It is not a good idea to allow anyone to post anything without some kind of checks being made... This only includes one check to see if the name is blank... More should be added if this is to be open to unknown people... In my opinion... Hope this helps!  ;D
  6. Micah is correct. There is no need to restart apache. Some hosts do not allow the use of .htaccess files, but if you said it was working before, that's strange...  :-\
  7. Your welcome! Does this mean you got everything straightened out? I take it you no longer need me to send a copy of my config files to the email addy in the PM?
  8. I have no idea then... It works good for me... If you pm me with your email addy I could send you all my config files but I dont see how that will help... I will if you think it would help...  :-\
  9. Oops I meant this [url=http://www.phpfreaks.com/forums/index.php/topic,121040.msg498351.html#msg498351]Forum post[/url]! It should look like this... [code]# # # $---> Section 1: HTTP Virtual Host Configuration <---$ # # # For Name Based Virtual Hosts NameVirtualHost * # <VirtualHost *>   ServerName www.paranoiaonline.co.uk   ServerAlias paranoiaonline.co.uk   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/pwd" </VirtualHost> # <VirtualHost *>   ServerName www.cascade-online.com   ServerAlias cascade-online.com   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cascade" </VirtualHost> <VirtualHost *>   ServerName www.gamingsearch.co.uk   ServerAlias gamingsearch.co.uk   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cheats" </VirtualHost>[/code]
  10. Okay... Sorry havent been around. See you got one working... Did you forget to add this... [code]# For Name Based Virtual Hosts NameVirtualHost *[/code] Before your vhost section like I told you in the other [url=http://www.phpfreaks.com/forums/index.php/topic,121040.msg498323.html#msg498323]forum post[/url]? Second you do not need the trailing slash... I gave you an example of what your vhost section should look like...
  11. It should be like this... [code]DirectoryIndex index.html index.htm[/code] If you use php or asp you can add that also... You can use anything you want to use as an index page... Like so... [code]DirectoryIndex index.html index.htm index.php index.asp[/code] ;)
  12. Nope.  ;) Edit: All the rest would go in the vhost section. If you created another site just add it to the vhost section! Also you need to add .htm to the end of your DirectoryIndex directive cause I noticed if I click on cascade in you directory listing the index page does not show cause .htm is not put there by default.
  13. Okay change the document root in httpd.conf to... [code]DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/pwd"[/code] This will be your vhost section... [code]# # # $---> Section 1: HTTP Virtual Host Configuration <---$ # # # For Name Based Virtual Hosts NameVirtualHost * # <VirtualHost *>   ServerName www.paranoiaonline.co.uk   ServerAlias paranoiaonline.co.uk   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/pwd" </VirtualHost> # <VirtualHost *>   ServerName www.cascade-online.com   ServerAlias cascade-online.com   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/cascade" </VirtualHost> #[/code] Adding any other things you want like ServerAdmin directive, CustomLog directive, & so on!  ;D
  14. [quote author=Drace link=topic=121040.msg498126#msg498126 date=1168092394] I dont want to have multiple sites using one url, i want multiple sites hosted on this particular server [/quote] This confused me a bit... You need one URL per site, either a root URL (www.paranoiaonline.co.uk) or a subdomain URL (cascade.paranoiaonline.co.uk) [quote author=Drace link=topic=121040.msg498126#msg498126 date=1168092394] I'm trying to eradicate this index page which shows al ist of directories and my document root is set to htdocs in the httpd file, so any ndeas?? [/quote] Thats why you see the directory listing, your document root is set to htdocs in httpd.conf. You can serve many sites from one server but they need a URL each like said above... Something like this maybe... [code]# # # $---> Section 1: HTTP Virtual Host Configuration <---$ # # # For Name Based Virtual Hosts NameVirtualHost * # <VirtualHost *>   ServerName www.paranoiaonline.co.uk   ServerAlias paranoiaonline.co.uk   DocumentRoot "/Apache2.2/htdocs" </VirtualHost> # <VirtualHost *>   ServerName cascade.paranoiaonline.co.uk   DocumentRoot "/Apache2.2/htdocs/cascade" </VirtualHost> # <VirtualHost *>   ServerName pwd.paranoiaonline.co.uk   DocumentRoot "/Apache2.2/htdocs/pwd" </VirtualHost> #[/code] Maybe I am not understanding what you want, in that case I apologize.  :-[ Edit: Are you trying to get www.paranoiaonline.co.uk to point to this site http://www.paranoiaonline.co.uk/pwd/ ? If thats all your trying to do change your document root in you httpd.conf file to point to "/Apache2.2/htdocs/pwd" Remember if you change core files you must restart Apache! Hope this helps!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.