How do i redirect pages within apache itself? Lets say im running apache2 on linux and own a domain like 1234.test...

How do i redirect pages within apache itself? Lets say im running apache2 on linux and own a domain like 1234.test. I have a page at /var/www/html/page/* which means people who want to access it will have to write 1234.test/page/. I want apache to point users to /page/ by default (in other words 1234.test will access /page/ by default). How do i do that without redirecting? Do i have to edit something in the domains DNS records or can i do it inside apache?

Attached: 1518471244395.jpg (1148x1700, 358K)

Other urls found in this thread:

httpd.apache.org/docs/trunk/urlmapping.html
twitter.com/SFWRedditImages

needs to shave those pits jesus

You couldn't handle a woman like her anyway. Now please answer my question

Attached: 1527710629065.jpg (960x1280, 217K)

>DNS
no. you'd certainly do this with your webserver. DNS only handles everything before *.tld

>apache
do yourself a favor and use nginx instead (+security, +++performance)

You need to read up on mod_rewrite, rough man

>armpit hair
>large flabby arms
ill pass thanks

>do yourself a favor and use nginx instead
Isn't that shit paid? I'm doing this for an amateur project so no thanks.

>You need to read up on mod_rewrite
Thanks, maybe that's the file I need. I'll check it out

Yes, mod_rewrite can do both internal redirections (changing the URL internally before apache tries to serve it) and external ones (where a 301/302 code does the redirection, and the browser makes another request to the new URL..).

Nginx is free

No, it's FOSS. Literally apt install nginx-mainline and you're done. Only their enterprise platform is paid.

Bad taste bro. BBWs are the future. The roastie market is ultra saturated and will crash eventually

Didn't know. Might check it out in the future

Attached: 1518472512611.jpg (1333x2000, 366K)

incel spotted

based soiboi posters.
You go wife up that hamplanet

this looks like the kind of woman who will caress you and pet your head while smothering you and call you a good boy, but also has a rape fetish and likes being abused and publicly groped.

wife, something you will never have

Change your Apache config to use '/var/www/html/page/' as your top-level web directory. Or move all the files in your page subdirectory up one level.

>shaved armpits
>free as in freedom femanon
pick one and one only fags

I'd pick Coraline.

Attached: XaBnbSjT_400x400.jpg (400x400, 36K)

I need a name,

Use the DocumentRoot property to change it
More about this here:

httpd.apache.org/docs/trunk/urlmapping.html

SHE CUTE

no fat chicks

For me, it's Cherie.

Attached: Cherie.jpg (960x1255, 144K)

She's cute, what's her name/moar pics

>chicks

I got some bad news for ya m8